LLM-generated unit tests land in production at Meta
Meta's TestGen-LLM has internal language models extend engineers' Kotlin unit tests for Instagram and Facebook, discards any test that fails to build, pass or add coverage, and sends the rest for review.
MetaUnited StatesEnterprise softwareIn production since Nov 2023Who built it Built in-houseHuman oversight People approve each outputKind of solution Software engineering assistantScale 1,979 test classes across three Instagram and Facebook test-a-thonsScenario AI unit test generationBusiness function Software engineeringOrganization Enterprise, 10,000 to 99,999 employeesAI types Generative AIUsers 36
- Who built it
- Built in-house
- Human oversight
- People approve each output
- Kind of solution
- Software engineering assistant
- Scale
- 1,979 test classes across three Instagram and Facebook test-a-thons
- Scenario
- AI unit test generation
- Business function
- Software engineering
- Organization
- Enterprise, 10,000 to 99,999 employees
- AI types
- Generative AI
- Users
- 36
tl;drMeta engineers accepted 73% of the test improvements TestGen-LLM offered at three test-a-thons.See the results
Meta built TestGen-LLM in-house to add unit tests to its Android apps without taking more of its engineers’ time. The tool asks large language models to extend the Kotlin test classes that engineers have written. It discards every candidate that doesn’t build, pass reliably and add coverage, and it sends each test that survives to an engineer to accept or reject1.
Meta put the tool to work at three Instagram and Facebook test-a-thons between October and December 20231. In January 2026, Meta engineers wrote that the system had been deployed, and regularly updated and evolved, at Meta for two years7. They described it as one of two approaches that Meta uses to generate tests that guard against future regressions7.
Engineers accepted 73% of the test improvements that TestGen-LLM offered, and the tool improved 196 of the 1,979 test classes it was run against1. At the November Instagram event, ranked by test cases landed, it finished sixth against the 36 engineers taking part1.
Before the deployment
Meta’s Android apps are large and change fast. Their unit tests are Kotlin test classes that engineers write by hand, and those classes had missed corner cases1. The apps had the following scale and testing practice:
- Code size: Each app has a client-side code base of tens of millions of lines1.
- Change rate: The central repository receives well over 100,000 commits a week1.
- Time for tests: Writing tests competes with feature work. Meta makes room for it with the test-a-thon, a regular event in which engineers set aside focused time for tests1.
- Test-a-thon output: In the November 2023 Instagram round, 36 engineers landed 105 unit test diffs1. A diff is Meta’s name for a code change submitted to its continuous integration system.
Meta set out to automate unit test generation for Android code, starting with tests that cover the corner cases that the existing classes missed1. The work began in the Instagram Product Performance Organisation. Tests were a first step: once regression testing was reliable at scale, the same approach could target operational properties such as performance1.
What was built
TestGen-LLM lets a model propose new test cases and has software check every proposal against measurable criteria before anyone sees it1. The team presents this as eliminating the problems that LLM hallucination causes1. The work is divided as follows:
- Language models: Two internal LLMs write an extended version of an existing test class. The default prompt sends them the test class and the class that it tests1.
- TestGen-LLM: Splits each reply into individual test cases, so that each one is judged on its own, and rebuilds the class from the cases that pass1. It only appends test cases and keeps every existing one, so a generated change can’t make the suite weaker1.
- Filters: Drop a candidate that doesn’t build in the app’s existing build infrastructure, that fails any of five runs, or that adds no line coverage over the existing tests in its directory and build target1. A test that fails on its first run is dropped, because without an automatic test oracle the tool can’t tell a found bug from a wrong assertion, and the workflow had to run without people1.
- Code review system: Delivers each surviving test as its own diff, with a report of the coverage it adds, so that a reviewer can accept or reject each test case separately1.
- Engineers: Review every diff and stay in control of what lands. No diff goes into the codebase without a human reviewer1, 2. The tool is meant to work alongside engineers’ effort and expertise, not to replace it1.
One reason to use a language model here, instead of a rule-based test generator, is style. Different parts of Meta’s code use different assertion styles, including utilities written for one component, and the generated tests followed those styles, naming conventions and structure1. The authors say rules would find this very hard to reproduce, and engineers’ feedback on it was very positive1.
Alternatives considered
The team made the following choices against a named alternative:
- Extend a class instead of writing tests from scratch: The tool builds on the engineers’ own work. Prompts stay small, because a test class is typically much smaller than the class it tests1. Prompts without the class under test still found tests, but sending the class produced better results1.
- Guarantee improvement per test case instead of per class: In the initial trial of eight diffs, reviewers found a diff with four tests that differed only on the surface1. The team then measured each test case’s own coverage, which is slower to compute but lets results from different models and replies be mixed1.
- Measure line coverage instead of branch coverage: Jacoco can’t collect branch coverage at the scale that Meta tests at1.
- Offer tests at diff time, as an engineer submits a related change, instead of after it lands: Earlier work at Meta found diff-time deployment far more effective, because it maximizes relevance1.
Rollout
Small issues in a tool’s behavior are considerably magnified at Meta’s scale, so TestGen-LLM went through a series of larger and less tightly controlled trials1. The trials ran from an early version’s eight diffs to the Facebook app round, where recommendations went straight to engineers with no briefing1.
At the November Instagram test-a-thon, the tool ran on a test class’s directory whenever an engineer submitted a test diff. The team still wrote the diff summaries and test plans by hand from the tool’s output1.
Technology and architecture
- AI component
- Data
- Trigger or control
- Handoff to people
The following table lists the parts of TestGen-LLM.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Solution platform | TestGen-LLM | Builds the prompts, splits replies into test cases, runs the filters and submits survivors | 1 |
| Language model | LLM1 and LLM2 | Internal Meta models that write candidate test cases. LLM2 became the default | 1 |
| Prompt and context management | Prompt templates | Four prompts asking for an extended test class. extend_coverage is the default | 1 |
| Guardrails | Build, pass and coverage filters | Drop any test that doesn’t build, fails one of five runs, adds no coverage or repeats one already seen | 1 |
| Framework or library | Jacoco | Coverage tooling. Only line coverage is collected at Meta’s scale | 1 |
| Developer tools | Continuous integration code review system | Receives each generated test as its own diff, with its coverage report | 1 |
| Monitoring | Execution telemetry | Logs every execution so models, prompts and settings can be compared | 1 |
LLM1 and LLM2 are two internal LLMs that Meta built for general use. The paper calls them by these labels because their details are commercially sensitive1. The design around them doesn’t depend on any one model. Each test case is a self-contained unit, so any number of models can contribute tests to the same class1. In practice, different models, prompts and settings each found tests that the others missed1.
Data inputs
The tool uses the following data:
- Test class: An existing human-written Kotlin test class is the case input that the model extends1.
- Class under test: The default prompt adds the class under test as context. It reads, in part, “Here is a Kotlin unit test class and the class that it tests:”1.
- Coverage baseline: A candidate must beat the line coverage of all the existing test classes in the same directory, which typically share one build rule1.
- Evaluation set: 86 Kotlin components from Instagram Reels and Stories, with human-written test classes, served to compare settings1.
Choosing the defaults
The defaults came from an evaluation mode, a dry run between the two Instagram rounds, so that engineers could use the tool without choosing settings1. On the 86 components, the team compared the two models, four prompting strategies and a range of temperatures1. The comparison gave the following results:
- Models: LLM1 alone found 13 tests, with 15% of files getting at least one new test. LLM2 alone found 16, with 19%1.
- Prompts: Three of the four prompts added tests for LLM1 that no other prompt found, and all four did so for LLM21.
- Temperature: Temperature zero did best, by a small margin over 0.2 and 0.5, which all had approximately 4% success over all test cases suggested1.
The tool went out with temperature zero, LLM2 and the extend_coverage prompt as defaults1. Engineers could still choose another model, prompt or temperature, run a sweep across temperatures, or use an ensemble that combined results from both LLMs1.
Later versions drop tests that the tool has seen before, because both models often produced almost identical tests that differed only in name1. The check compares test bodies for syntactic equality, because a new test was either an almost verbatim copy of an earlier one or very different1.
How one candidate test flows through the system
- AI component
- Data
- Trigger or control
- Handoff to people
The authors checked all 17 diffs from the November test-a-thon by hand. Each test covered at least one additional valid corner case, such as an early return or special handling of null or an empty list1. The largest gain came from a test that reached a method nothing had covered, which brought 28 new files under test. The smallest covered a single extra line in a file that was already partly covered1.
The one November diff that didn’t land went through the following steps:
- The model wrote a test for a partially implemented function. It left a comment that an assertion was still to be added1.
- The test added coverage by running a method that no test had run, so it got through all three filters1.
- The reviewing engineer rejected the diff, because the test had no assertion1.
Results
The figures come from the three test-a-thons and the evaluation between them, and they count different units: test improvements, diffs and test classes1.
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Test improvements accepted | Not disclosed | 73% | Three Instagram and Facebook test-a-thons, 29 October to 29 December 2023 | Meta engineers, measured1 |
| Test classes improved | Not disclosed | 196 of 1,979 | Same three test-a-thons | Meta engineers, measured1 |
| Diffs accepted, Facebook test-a-thon | Not disclosed | 144 of 280 | December 2023, engineers not briefed | Meta engineers, measured1 |
| Test classes with a new test that built, passed and added coverage | Not disclosed | 25% | Evaluation mode, 86 Reels and Stories components | Meta engineers, pilot1 |
| Diffs landed, first Instagram test-a-thon | Not disclosed | 16 of 17 | 15 to 20 November 2023 | Meta engineers, measured1 |
| Diffs accepted, December Instagram run | Not disclosed | 36 of 42 | 18 to 20 December 2023, recommendations screened by two authors | Meta engineers, measured1 |
The following points explain the figures:
- Acceptance: The 73% is the share of TestGen-LLM’s test improvements that engineers accepted over all three test-a-thons1. The paper compares it with an earlier automated repair tool at Meta, which had 50% of its recommended fixes accepted and landed1.
- Facebook round: This round is the closest to ordinary use, because engineers received the diffs with no briefing, no special expectations and no added context1. Besides the accepted diffs, 64 were rejected or abandoned, 61 never got a review and the rest were withdrawn. The accepted diffs were over 50% of everything submitted and almost 70% of the diffs that someone reviewed1.
- December Instagram run: The run was entirely automated, and the tool wrote the diff comments and test plans1. Two of the authors looked at each recommendation first, and engineers had been told to expect tests from the tool. Of the 42 diffs, 4 were rejected or abandoned and 2 were withdrawn1.
- Evaluation funnel: The 25% is the last step of a funnel. Of the 86 test classes, 75% got at least one new test that built, and 57% got one that built and passed reliably1.
- Size of each gain: The median TestGen-LLM test in November added 2.5 lines of coverage. The tool’s total there was dominated by one test that covered 1,326 lines1.
Lessons learned
Splitting generation from checking made the tool workable. Most model output was discarded, and the tool improved roughly a tenth of the classes it tried1. Engineers’ acceptance still held up at the Facebook round, where nobody briefed them or screened the diffs1. The tool was still deployed and evolving two years later, which is the strongest sign that the trade worked for Meta7.
Tests that cleared the filters were still rejected for reasons coverage can’t catch: a missing assertion, a trivial getter, or more than one behavior in one test1. The team also withdrew two that covered only unimportant files, and the authors note that a model that copies the code around it can pick up deprecated coding habits1. Engineer’s Codex called the output often good and sometimes trivial or pointless2.
Coverage measures what a test runs, not what it checks. The authors call line coverage merely an expedient proxy for improvement1. The reviewing engineer also has to judge whether a test will likely catch future regressions, a burden that Meta’s later mutation-guided tool, ACH, was built to remove6, 4.
A test that must pass against the current code can codify existing bugs, so they go unnoticed until production, as Engineer’s Codex warned2. Meta’s own engineers later called this the Regression Only Trap, in which tests can’t catch the bugs that a revision introduces, or long-standing ones6.
The figures come from Meta’s own engineers, in papers that include one peer reviewed for FSE 2024, and the outside write-ups restate them1, 2, 3. The paper gives the 25% both as a share of test classes and as a success rate per test case, and it puts classes improved at approximately 10% in its body and 11.5% in its abstract1.
The authors warn that the test-a-thon statistics carry unavoidable confounding factors, and that a test-a-thon’s extra focus on testing made November an imperfect example of diff-time use1.
Case study scorecard
- 73% Test improvements accepted by engineers1
- 196 of 1,979 Test classes improved1
- 144 of 280 Diffs accepted at the Facebook app test-a-thon1
- 25% Test classes given a new test that built, passed and added coverage1
- Source quality: 74%, High quality. Rests on a peer-reviewed paper.
Sources by publication date
- Vendors and partners 1
- Press, academic, and regulators 6
- 1 undated
Build this solution yourself
Analysis
What you need
To build this solution, you need the following in place:
- Human-written test classes to extend: Both the prompt and the coverage baseline start from them, and the prompt that sent the test class with the class under test did best1.
- Cheap build, run and coverage measurement: Your infrastructure must build one candidate test, run it five times and report its line coverage, cheaply enough to do so tens of thousands of times1.
- A review flow for many one-test diffs: Engineers must be willing to judge each test on its own, because the tool submits every test as a separate diff1.
Reference architecture
Software engineering assistant
A software engineering assistant writes, reviews, tests, or migrates code in the tools that developers already use, and a developer approves its output. A language model writes a change, a test, or a review comment from the code for a task, and automated checks and a checker model build, test, and filter it. A reviewer approves each checked proposal in code review before it merges, and developers do the work that fails the checks by hand.
- Developer tools (documented in this case study)
- Assistant platform (documented in this case study)
- Code repository
- Code index
- Deterministic code analysis
- Standards and guidelines
- Code and platform map
- Prompts and context (documented in this case study)
- Language model (documented in this case study)
- Automated checks (documented in this case study)
- Checker model
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
In the library
- How CGI uses Codex and AI coding tools to build its own IP CGI
- Mozilla's AI agents find 271 Firefox security bugs Mozilla
- LinkedIn's AI coding agents migrate ML models to PyTorch LinkedIn
- How OpenAI researchers hand AI research work to Codex agents OpenAI
- Stripe's unattended AI coding agents write 1,300 PRs a week Stripe
- How Airbnb used LLMs to migrate its React tests in six weeks Airbnb
Cite this case study
Enterprise AI Case Studies. "LLM-generated unit tests land in production at Meta." Updated Nov 19, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-011-llm-unit-test-generation-meta/
@misc{csai-er-011,
author = {{Enterprise AI Case Studies}},
title = {{LLM-generated unit tests land in production at Meta}},
year = {2026},
note = {Updated 2026-11-19},
url = {https://case-studies.ai/case-studies/engineering-and-research/ER-011-llm-unit-test-generation-meta/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Automated Unit Test Improvement using Large Language Models at Meta
Supporting excerpts (129)
As part of our overall mission to automate unit test generation for Android code, we have developed an automated test class improver, TestGen-LLM.
The two LLMs used by TestGen-LLM were constructed at Meta for general purpose internal use
Because details are commercially sensitive (and not relevant to this paper), we do not give details of the two LLMs
to extend existing, human-written, Kotlin test classes by generating additional test cases that cover previously missed corner cases, and that increase overall test coverage.
In an evaluation on Reels and Stories products for Instagram, 75% of TestGen-LLM test cases generated built correctly, 57% passed reliably, and 25% increased coverage.
it improved 11.5% of all classes to which it was applied, with 73% of its recommendations being accepted for production deployment by Meta software engineers
Initial planning for TestGen-LLM took place in spring 2023
This was the motivation for our initial focus on test generation: once we have reliable automated regression testing at scale, we can use Assured LLMSE to target operational code properties, such as performance.
The first filter simply checks that the candidate code is fully buildable within the existing infrastructure of the app under test.
Therefore, TestGen-LLM discards any test case that does not pass on first execution.
a test that does not pass on every one of five executions is deemed flaky.
Any test that does not improve coverage is also discarded.
The pre- and post-processing are steps used to extract test cases and re-construct test classes.
include telemetry to log the behavior of every execution
The diffs submitted by TestGen-LLM document their own coverage improvement to support the claim that they improve the code base.
TestGen-LLM simply augments an existing test class with additional test cases, retaining all existing test cases and thereby guaranteeing there will be no regression, by construction.
Different LLMs have different strengths.
each combination tends to contribute uniquely to the overall number of test cases found
leaves the software engineer in ultimate control of the code that lands into the code base.
the central repository receives well over 100,000 commits per week
the apps under test have client-side code bases of tens of millions of lines of code each
As an initial trial, we used an initial version of TestGen-LLM to create eight diffs
standard continuous integration code review system
By measuring the individual coverage contributed by each test case, the updated version of TestGen-LLM now automatically weeds out such duplicated test effort.
one of the diffs that ultimately landed initially contained four test cases.
all four were only superficially different.
We constructed the diff summaries and test plans and submitted them manually
TestGen-LLM was executed on the directory in which the test class resided
investigate the unique contribution of each of four prompting strategies
Here is a Kotlin unit test class and the class that it tests:
although slightly higher for Facebook than for Instagram
Instagram Test-a-thon November 2023
which ran from November 15th - 20th 2023.
Test-a-thons are regular human-centric activities in which engineers seek allocate specific focused time to writing test cases.
During the three days of the test-a-thon
36 engineers spent significant portions of their time focused on writing additional test cases for specific Instagram products targeted by the test-a-thon.
repeatedly found that diff time deployment is far more effective, because it maximizes relevance
During the first test-a-thon, 36 engineers landed 105 unit test diffs, of which 16 were generated by TestGen-LLM.
In total, TestGen-LLM created 17 diffs.
One diff was abandoned because the test case did not include any assertion.
TestGen-LLM landed in sixth place in rank order by number of tests generated.
since the ranking was computed in terms of the number of test cases landed, the rank position of TestGen-LLM
almost verbatim copies of others previously generated, or very different.
TestGen-LLM submits each test as a separate diff.
However, this result arose due to a single test case, which achieved 1,326 lines covered.
For example, 6 of the 17 test cases it generated covered only a single extra line.
The median number of lines of code added by a TestGen-LLM test in the test-a-thon was 2.5.
This produced results over 86 Kotlin components with existing human-written test classes (31 for Stories and 55 for Reels)
Using just LLM1, TestGen-LLM was able to find
13 tests (15% of files have at least one new test).
16 tests (19% of files have at least one new test).
all had approximately 4% success over all test cases suggested
Based on these results, it was decided to deploy TestGen-LLM for subsequent test-a-thons with default temperature zero, default LLM set to LLM2 and default prompt extend_coverage.
Unfortunately, although Jacoco is theoretically capable of collecting branch coverage, this is not available at the scale of testing required by Meta, so we currently rely solely on line coverage.
During the period 18th to the 20th of December 2023
the recommendations were first considered by two of authors before being passed on to engineers.
TestGen-LLM automatically generated 42 diffs that were submitted for review.
36 were accepted by the engineer reviewing them.
The 2 withdrawn diffs each added coverage, but we recognized that the files covered were unimportant.
Generating tests for trivial methods under test (a getter method).
Failing to include an assertion in the test case.
Deployment at the Facebook App Test-a-thon December 2023
There was no engineer pre-training process, no specific test-a-thon expectations, and no additional context provided to the engineers.
Overall, over 50% of the diffs submitted were accepted by developers, a figure which rises to almost 70% of those which received a review by developers.
of the 280 diffs generated by TestGen-LLM
144 were accepted by the engineer reviewing them.
64 were rejected and/or abandoned.
61 did not receive a review.
All deployment data collection took place between 29th Oct 2023 - 29th Dec 2023
196 test classes were successfully improved, while the TestGen-LLM tool was applied to a total of 1,979 test classes.
TestGen-LLM was therefore able to automatically improve approximately 10% of the test classes to which it was applied.
Over all, 73% of TestGen-LLM test improvements were accepted by developers.
it compares favorably with previous attempts to deploy automated repair at Meta (where 50% of recommended fix improvements were accepted and landed into production
There is approximately one order of magnitude more human-written Kotlin test code for Facebook then there is for Instagram.
We observed that both LLM1 and LLM2 often generated almost identical tests for the same prompt; different in name only.
included an extra filter to remove previously seen test cases.
We have taken the simple approach of measuring line coverage as a proxy for improvement, but it is merely an expedient proxy for
Sometimes the generated tests included a
TestGen-LLM verifies that its generated test classes successfully clear a set of filters that assure measurable improvement over the original test suite, thereby eliminating problems due to LLM hallucination.
with initial development in summer and autumn, and evaluation and onward optimization through winter 2023.
TestGen-LLM cannot automatically determine whether a failing test has found a bug, or whether it merely contains an incorrect test assertion.
We want an entirely automated workflow.
Since the generated test cases are unit level tests, repeated execution is a relatively computationally inexpensive approach to filtering out flaky tests.
is slower to compute, but it gives TestGen-LLM the overall ability to more easily mix and match the results from different LLMs and different responses from the same LLM
The TestGen-LLM MVP was therefore updated to report all details of the coverage achieved.
In all three cases, the test class improvements were deemed acceptable.
It was found that the verifiable claims for improvement made it easy to accept and land these tests into production.
The test classes and products chosen for the test-a-thon were those that had been the subject of recent intensive re-factoring activity.
Whenever a diff was submitted by an engineer as part of the test-a-thon process between 15th and 18th November 2023,
TestGen-LLM thus automatically measures the additional coverage achieved over and above all the existing test classes residing in the same directory as the human-written test class.
At diff time, the tests are recommended to the engineer at the time they submit a related diff
However, we cannot claim that this was a perfect example of diff time deployment
Where we included any text in the summary indicating our own interpretation of the results, this was contained in a blue-box
In the second Instagram test-a-thon (see Section 3.4) we fully automated the construction of the content and claims made by TestGen-LLM in diff comments and test plans.
16 landed into production.
for which the LLM code left a comment indicating that an assertion was to be added as a
but it was rejected by the engineer reviewing the diff because it failed to contain an assertion.
28 new files covered that were not previously covered.
The smallest coverage improvement was produced by a diff that covered a single additional line (an early return) in a file that was already partially covered by the existing test classes.
However, in all 17 cases, we manually verified that the generated test did, indeed, cover at least one additional valid corner case
It also allows the engineers to more easily accept or reject the recommendations, per test case.
we needed to choose suitable defaults for hyper parameters so that engineers could use the tool out-of-the-box without having to consider choices of settings.
75% of test classes had at least one new test case that builds correctly.
57% of test classes had at least one test case that builds correctly and passes reliably.
25% of test classes had at least one test case that builds correctly, passes and increases line coverage compared to all other test classes that share the same build target.
However, users were free to deploy using other settings when applying the TestGen-LLM tool.
combines results from both then-available LLMs.
Engineers were also pre-warned that they may be receiving test cases generated by TestGen-LLM
This deployment was entirely automated, with TestGen-LLM now running automatically on these directories without human intervention.
In this deployment, we had sufficient confidence to automatically submit recommendations from TestGen-LLM to engineers.
However, the effect size was low compared to the nearest next-best temperatures of 0.2 and 0.5;
4 were rejected and/or abandoned.
this received by far the greatest number of trials (30,483) during the test-a-thons.
The technology was initially developed by the Instagram Product Performance Organisation within Meta
Furthermore, due to these results being obtained from deployment mode not experimental mode, there are unavoidable confounding factors.
greatly simplified this filter, because it simply needed to check for syntactic equality of test bodies.
We did not land these tests into production.
Feedback from our engineers was very positive regarding the way in which TestGen-LLM tests followed the style of the existing test class.
It would be highly challenging to define algorithms for replicating these bespoke styles using a more rule-based approach, but using an LLM, this useful behaviour simply comes naturally.
Nevertheless, fashion following also means that the language model can pick up deprecated coding habits
Mutation coverage (Jia and Harman, 2011) would likely be the best performing criterion.
However, it is challenging to deploy such computationally demanding techniques at the scale we would require
we found that the success rate per test case was 25%
relatively small issues in the behavior of the technology can become considerably magnified at scale.
Providing the class under test does produce better results
Nevertheless, we have also been able to successfully extend test classes by providing solely the existing test class
This is because the test class is typically much smaller than the class under test.
the Assured LLMSE design is LLM-agnostic and allows for an arbitrary number of LLMs to each contribute test cases to the extended test class.
works in concert with human engineering effort, insights and domain expertise; it does not seek to replace them.
- Source 2:
Meta's new LLM-based test generator is a sneak peek to the future of development
Supporting excerpts (5)
The tests that it creates in its pull requests are often good, and sometimes trivial or pointless.
All of its pull requests require a human reviewer before pushed into the codebase.
More code coverage != better code.
the downsides of rote coverage created by LLMs is that bugs are also codified, which means they can go unnoticed until they appear in production.
LLMs used in production should take ideas from how Meta processes and filters LLM outputs, and most outputs should be expected to be discarded.
- Source 3:
How to Use AI to Automate Unit Testing with TestGen-LLM and Cover-Agent
Supporting excerpts (2)
Although the code for the TestGen-LLM was not released
CodiumAI's Cover-Agent is the first open-source implementation of an automated testing tool based on TestGen-LLM.
- Source 4:
Mutation-Guided LLM-based Test Generation at Meta
Supporting excerpts (3)
ACH was applied to 10,795 Android Kotlin classes in 7 software platforms deployed by Meta, from which it generated 9,095 mutants and 571 privacy-hardening test cases.
mutants (aka simulated faults)
ACH was used by Messenger and WhatsApp test-a-thons where engineers accepted 73% of its tests, judging 36% to privacy relevant.
- Source 5:
Goldman Sachs complete a year's worth of Java unit test writing overnight with Diffblue Cover
Supporting excerpts (2)
an AI-powered tool that enables the engineering teams to improve code quality and efficiency through the automatic generation of unit tests
For one module within an important backend system, existing unit test coverage was boosted from 36% to 72% in less than 24 hours.
- Source 6:
Harden and Catch for Just-in-Time Assured LLM-Based Software Testing: Open Research Challenges
Supporting excerpts (5)
This is what we have done with our deployment of TestGen-LLM
In the case of TestGen-LLM the engineer also has to check whether the test will likely catch future regressions.
This extra obligation places a further burden on the human engineer that is removed by ACH,
These unit test generation techniques focus on covering uncovered code.
However, as we show, it leads us into a Regression Only Trap, in which tests must pass on the current revision, and therefore cannot catch new bugs introduced by that revision, nor long-standing legacy bugs.
- Source 7:
Just-in-Time Catching Test Generation at Meta
Supporting excerpts (3)
The system is based on line coverage and has been deployed (and regularly updated and evolved) at Meta for two years now.
These two approaches are both deployed at Meta to generate hardening test cases.
is a traditional LLM-based test generation system that elevates coverage, stimulating the LLM to generate test cases to target code that is currently uncovered by any existing test case.
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.