mlsanityData to 7 Oct 2026

On Learning Meaningful Assert Statements for Unit Test Cases

arXiv 2002.05800 ↗First posted 13 Feb 2020cs.SEcited by 42

Not on the map. Why?

Abstract (arXiv)

Software testing is an essential part of the software lifecycle and requires a substantial amount of time and effort. It has been estimated that software developers spend close to 50% of their time on testing the code they write. For these reasons, a long standing goal within the research community is to (partially) automate software testing. While several techniques and tools have been proposed to automatically generate test methods, recent work has criticized the quality and usefulness of the assert statements they generate. Therefore, we employ a Neural Machine Translation (NMT) based approach called Atlas(AuTomatic Learning of Assert Statements) to automatically generate meaningful assert statements for test methods. Given a test method and a focal method (i.e.,the main method under test), Atlas can predict a meaningful assert statement to assess the correctness of the focal method. We applied Atlas to thousands of test methods from GitHub projects and it was able to predict the exact assert statement manually written by developers in 31% of the cases when only considering the top-1 predicted assert. When considering the top-5 predicted assert statements, Atlas is able to predict exact matches in 50% of the cases. These promising results hint to the potential usefulness ofour approach as (i) a complement to automatic test case generation techniques, and (ii) a code completion support for developers, whocan benefit from the recommended assert statements while writing test code.

Key facts. Cited by 42 papers in the map (data through 7 Oct 2026). First posted on arXiv 13 Feb 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 12; 2024: 11; 2025: 10; 2026: 8.

42 papers.

Sort:

By area:

  1. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  2. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  3. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
  4. 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
  5. 2023Learning Deep Semantics for Test Completioncited by 31
  6. 2023CAT-LM: Training Language Models on Aligned Code And Testscited by 28
  7. 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
  8. 2023Benchmarking Causal Study to Interpret Large Language Models for Source Codecited by 14
  9. 2023Toward a Theory of Causation for Interpreting Neural Code Modelscited by 12
  10. 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanationscited by 10
  11. 2023Evaluating and Explaining Large Language Models for Code Using Syntactic Structurescited by 9
  12. 2025LLM Test Generation via Iterative Hybrid Program Analysiscited by 9
30 more
  1. 2025TestForge: Feedback-Driven, Agentic Test Suite Generationcited by 8
  2. 2023Domain Adaptation for Code Model-based Unit Test Case Generationcited by 7
  3. 2023Assessing Evaluation Metrics for Neural Test Oracle Generationcited by 7
  4. 2023Perfect is the enemy of test oraclecited by 6
  5. 2024Generating executable oracles to check conformance of client code to requirements of JDK Javadocs using LLMscited by 6
  6. 2024How Propense Are Large Language Models at Producing Code Smells? A Benchmarking Studycited by 6
  7. 2025Evaluating LLM-Based Regression Test Generationcited by 6
  8. 2023Revisiting and Improving Retrieval-Augmented Deep Assertion Generationcited by 5
  9. 2024UniTSyn: A Large-Scale Dataset Capable of Enhancing the Prowess of Large Language Models for Program Testingcited by 5
  10. 2024exLong: Generating Exceptional Behavior Tests with Large Language Modelscited by 4
  11. 2024ASSERTIFY: Utilizing Large Language Models to Generate Assertions for Production Codecited by 4
  12. 2025Improving Deep Assertion Generation via Fine-Tuning Retrieval-Augmented Pre-trained Language Modelscited by 4
  13. 2024FuzzAug: Data Augmentation by Coverage-guided Fuzzing for Neural Test Generationcited by 3
  14. 2025SURGE: On the Potential of Large Language Models as General-Purpose Surrogate Code Executorscited by 3
  15. 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
  16. 2026"I'm Not Reading All of That": Understanding Software Engineers' Level of Cognitive Engagement with Agentic Coding Assistantscited by 3
  17. 2024Evaluating the Effectiveness and Efficiency of Demonstration Retrievers in RAG for Coding Taskscited by 2
  18. 2025Improving Retrieval-Augmented Deep Assertion Generation via Joint Trainingcited by 2
  19. 2025Large Language Models for Software Testing: A Research Roadmapcited by 2
  20. 2026Understanding LLM-Driven Test Oracle Generationcited by 2
  21. 2025Navigating the Labyrinth: Path-Sensitive Unit Test Generation with Large Language Modelscited by 1
  22. 2026SCATE: Learning to Supervise Coding Agents for Cost-Effective Test Generationcited by 1
  23. 2023A Machine Learning Approach Towards SKILL Code Autocompletioncited by 0
  24. 2024Transducer Tuning: Efficient Model Adaptation for Software Tasks Using Code Property Graphscited by 0
  25. 2025Mapping the Trust Terrain: LLMs in Software Engineering -- Insights and Perspectivescited by 0
  26. 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
  27. 2026Fail-Aware and Explainable Test Oracle Predictioncited by 0
  28. 2026Do Coverage and Mutation Scores of LLM-Generated Test Suites Correlate with Their Effectiveness? (Replicability Study)cited by 0
  29. 2026Agent-Based Test Assertion Generation via Diverse Perspective Aggregationcited by 0
  30. 2026Grounding AI Agents in Contracts: An Empirical Evaluation of Spec-Driven Test Generationcited by 0