Papers › CoverUp: Effective High Coverage Test Generation for Python

CoverUp: Effective High Coverage Test Generation for Python

24 Mar 2024arXiv:2403.16218archive 2025-07-28

Juan Altmayer Pizzorno, Emery D. Berger

Testing is an essential part of software development. Test generation tools attempt to automate the otherwise labor-intensive task of test creation, but generating high-coverage tests remains challenging. This paper proposes CoverUp, a novel approach to driving the generation of high-coverage Python regression tests. CoverUp combines coverage analysis, code context, and feedback in prompts that iteratively guide the LLM to generate tests that improve line and branch coverage. We evaluate our prototype CoverUp implementation across a benchmark of challenging code derived from open-source Python projects and show that CoverUp substantially improves on the state of the art. Compared to CodaMosa, a hybrid search/LLM-based test generator, CoverUp achieves a per-module median line+branch coverage of 80% (vs. 47%). Compared to MuTAP, a mutation- and LLM-based test generator, CoverUp achieves an overall line+branch coverage of 89% (vs. 77%). We also demonstrate that CoverUp's performance stems not only from the LLM used but from the combined effectiveness of its components.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.16218")

Code

Syntology Ran 12 of 17 code samples harvested from 2 repositories linked to this paper; 5 have no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: official repository: 17 samples from 2 repositories, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

plasma-umass/coverup officialmentioned in papermentioned on GitHubApache-2.0 report
plasma-umass/coverup-eval officialmentioned in paperApache-2.0 report
ZJU-ACES-ISE/ChatUniTest mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 12 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12ran
5unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

basedir plasma-umass/coverup-eval/output/cm/ansible/coverup-tests/disabled_test_coverup_1137.py official repository ran fingerprinted Apache-2.0 (permissive) · e780f2ac9b06a8c2 · report
count_tokens plasma-umass/coverup/src/coverup/llm.py official repository ran Apache-2.0 (permissive) · 145acc26153dc1f4 · report
custom_object_representer plasma-umass/coverup-eval/output/cm/ansible/coverup-tests/disabled_test_coverup_1108.py official repository ran Apache-2.0 (permissive) · ae89c975e4a8f393 · report
format_ranges plasma-umass/coverup/src/coverup/utils.py official repository ran Apache-2.0 (permissive) · ecca514f32bdaa28 · report
get_global_imports plasma-umass/coverup/src/coverup/codeinfo.py official repository ran Apache-2.0 (permissive) · 6f9ea5e7c5e3e194 · report
is_same_as_P plasma-umass/coverup/src/coverup/logreader.py official repository ran Apache-2.0 (permissive) · 218a7174bbbafd7c · report
lines_branches_do plasma-umass/coverup/src/coverup/utils.py official repository ran Apache-2.0 (permissive) · ec9b4903be33464d · report
parse_file plasma-umass/coverup/src/coverup/codeinfo.py official repository ran Apache-2.0 (permissive) · 7bb4f87378c340a8 · report
remove_omit plasma-umass/coverup-eval/output/cm/ansible/coverup-tests/disabled_test_coverup_1123.py official repository ran Apache-2.0 (permissive) · e134f05ecc5345c7 · report
subprocess_run plasma-umass/coverup/src/coverup/utils.py official repository ran Apache-2.0 (permissive) · a6bcfa534306ab26 · report
test_file_path plasma-umass/coverup/src/coverup/coverup.py official repository ran Apache-2.0 (permissive) · 28aa58f0339c64af · report
token_rate_limit_for_model plasma-umass/coverup/src/coverup/llm.py official repository ran Apache-2.0 (permissive) · f840bd6712a9a03f · report
compute_cost plasma-umass/coverup/src/coverup/llm.py official repository unverified Apache-2.0 (permissive) · def8599068e3dbf6 · report
get_info plasma-umass/coverup/src/coverup/codeinfo.py official repository unverified Apache-2.0 (permissive) · 9b6d481e57689ee5 · report
get_missing_coverage plasma-umass/coverup/src/coverup/segment.py official repository unverified Apache-2.0 (permissive) · cc43dbef7115b69c · report
new_test_file plasma-umass/coverup/src/coverup/coverup.py official repository unverified Apache-2.0 (permissive) · d3e7c47f194e80d7 · report
parse_log plasma-umass/coverup/src/coverup/logreader.py official repository unverified Apache-2.0 (permissive) · f5192e3a7fcb2025 · report

Tasks

software testing

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections