ReAssert: Deep Learning for Assert Generation
Not on the map. Why?
Abstract (arXiv)
The automated generation of test code can reduce the time and effort required to build software while increasing its correctness and robustness. In this paper, we present RE-ASSERT, an approach for the automated generation of JUnit test asserts which produces more accurate asserts than previous work with fewer constraints. This is achieved by targeting projects individually, using precise code-to-test traceability for learning and by generating assert statements from the method-under-test directly without the need to write an assert-less test first. We also utilise Reformer, a state-of-the-art deep learning model, along with two models from previous work to evaluate ReAssert and an existing approach, known as ATLAS, using lexical accuracy,uniqueness, and dynamic analysis. Our evaluation of ReAssert shows up to 44% of generated asserts for a single project match exactly with the ground truth, increasing to 51% for generated asserts that compile. We also improve on the ATLAS results through our use of Reformer with 28% of generated asserts matching exactly with the ground truth. Reformer also produces the greatest proportion of unique asserts (71%), giving further evidence that Reformer produces the most useful asserts.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 19 Nov 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 4; 2024: 0; 2025: 1; 2026: 1.
6 papers.
- 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
- 2023Benchmarking Causal Study to Interpret Large Language Models for Source Codecited by 14
- 2025TestForge: Feedback-Driven, Agentic Test Suite Generationcited by 8
- 2023Assessing Evaluation Metrics for Neural Test Oracle Generationcited by 7
- 2023Perfect is the enemy of test oraclecited by 6
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2025TestForge: Feedback-Driven, Agentic Test Suite Generation18 Mar 2025
- 2023Assessing Evaluation Metrics for Neural Test Oracle Generation11 Oct 2023
- 2023CAT-LM: Training Language Models on Aligned Code And Tests2 Oct 2023
- 2023Benchmarking Causal Study to Interpret Large Language Models for Source Code23 Aug 2023
- 2023Perfect is the enemy of test oracle3 Feb 2023