TY - GEN T3 - The ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) Y1 - 2018/11/04/ TI - TestNMT: Function-to-test neural machine translation SP - 30 N1 - This version is the author accepted manuscript. For information on re-use, please refer to the publisher?s terms and conditions. PB - ACM CY - New York, USA ID - discovery10070354 KW - neural machine translation KW - software testing N2 - 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. AV - public EP - 33 A1 - White, R A1 - Krinke, J UR - https://2018.fseconference.org/ ER -