UCL Discovery
UCL home » Library Services » Electronic resources » UCL Discovery

TestNMT: Function-to-test neural machine translation

White, R; Krinke, J; (2018) TestNMT: Function-to-test neural machine translation. In: Yu, Yijun and Fredericks, Erik and Devanbu, Premkumar, (eds.) NL4SE 2018 Proceedings of the 4th ACM SIGSOFT International Workshop on NLP for Software Engineering. (pp. pp. 30-33). ACM: New York, USA. Green open access

[thumbnail of nl4se18.pdf]
Preview
Text
nl4se18.pdf - Accepted Version

Download (472kB) | Preview

Abstract

Test generation can have a large impact on the software engineering process by decreasing the amount of time and effort required to maintain a high level of test coverage. This increases the quality of the resultant software while decreasing the associated effort. In this paper, we present TestNMT, an experimental approach to test generation using neural machine translation. TestNMT aims to learn to translate from functions to tests, allowing a developer to generate an approximate test for a given function, which can then be adapted to produce the final desired test. We also present a preliminary quantitative and qualitative evaluation of TestNMT in both cross-project and within-project scenarios. This evaluation shows that TestNMT is potentially useful in the within-project scenario, where it achieves a maximum BLEU score of 21.2, a maximum ROUGE-L score of 38.67, and is shown to be capable of generating approximate tests that are easy to adapt to working tests.

Type: Proceedings paper
Title: TestNMT: Function-to-test neural machine translation
Event: 4th Workshop on NLP for Software Engineering (NL4SE18), 4 November 2018, Lake Buena Vista, FL, USA
ISBN-13: 978-1-4503-6055-5
Open access status: An open access version is available from UCL Discovery
DOI: 10.1145/3283812.3283823
Publisher version: https://2018.fseconference.org/
Language: English
Additional information: This version is the author accepted manuscript. For information on re-use, please refer to the publisher’s terms and conditions.
Keywords: neural machine translation, software testing
UCL classification: UCL
UCL > Provost and Vice Provost Offices > UCL BEAMS
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Chemical Engineering
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Computer Science
URI: https://discovery.ucl.ac.uk/id/eprint/10070354
Downloads since deposit
188Downloads
Download activity - last month
Download activity - last 12 months
Downloads by country - last 12 months

Archive Staff Only

View Item View Item