A3Test
A sequence-to-sequence model that generates unit test cases, adapted from an assertion generation task.
Language · 494 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 139.2M
- Operations
- 494
- Framework
- PyTorch
- Recurrent
- No
- Published
- Information and Software Technology 176, 107565 (2024)
- Cited by
- 7 (as of 27 October 2026)
- Authors
- Saranya Alagarsamy, Chakkrit Tantithamthavorn, Aldeida Aleti
- Source
- GitHub: awsm-research/A3Test
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14473
- Graph hash
- 0580da0205e29896ed434e44a76171b5afec1fd10a8f16258c4cffe986791d91
- Skeleton hash
- 26040122abd25d92924e5b92cf41a4fb8c8ffcf53cd9a558e2a4604cb5265b9d
- Architecture hash
- 7da280027f7bd38ab6380037a5f40938567e092463e23e420acec5428ea38664
- Diagram SHA-256
- a9152543436e209a6289c8aefee4e4e12c838f7d00ba1e7566386e1b26c25af3
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.PLBartForConditionalGeneration()
What it is
A3Test is a deep learning approach to generating unit test cases, developed in its repository as a BART based model. It follows AthenaTest, an earlier deep learning approach that, according to the paper, generates less than one-fifth of the test cases correctly because it lacks assertion knowledge and test signature verification.
A3Test applies domain adaptation: existing knowledge from an assertion generation task is adapted to the test case generation task. A verification approach then checks naming consistency and test signatures. The repository fine-tunes the model on methods2test data.
In an evaluation of 5,278 focal methods from the Defects4j dataset, the paper reports 147% more correct test cases and 15% more method coverage than AthenaTest, with a lower number of generated test cases. It attributes a substantial part of the improvement to the assertion pre-training and the verification components.
Key idea. A3Test adapts knowledge from an assertion generation task to test case generation and adds verification of naming consistency and test signatures.
- a3test
- assertion-augmented automated test case generation
- test case generation
- unit test generation
- assertion generation
- automated testing
- defects4j
- methods2test
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{alagarsamy2023a3testassertionaugmentedautomatedtest,
title={A3Test: Assertion-Augmented Automated Test Case Generation},
author={Saranya Alagarsamy and Chakkrit Tantithamthavorn and Aldeida Aleti},
year={2023},
eprint={2302.10352},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2302.10352},
}