JiTTests
An LLM-based automated test generation system developed by Meta. It generates test cases expected to fail in response to code changes (diffs), intercepting high-risk defects before code is merged, with particular attention to privacy and security issues.
Timeline (last 90 days)
Meta's JiTTests system has moved from the experimental stage into production.
JiTTests generates expected-to-fail test cases for code changes (diffs) about to be merged, to expose risks before merging.
In the first half of the year, JiTTests caught 74 privacy-related severe incidents (SEVs) before code was merged.
The true-positive rate of JiTTests reported by engineers reached 60%.
JiTTests takes code diffs as input, lets an LLM analyze the semantics of the changes and generate test cases.
JiTTests chose to trigger only in the narrow scenario of "high-risk diffs" rather than running on all commits, in order to balance coverage and engineering feasibility.
A 60% true positive rate is above the middle level for LLM-generated tests, but is not yet sufficient to serve as a hard gate blocking merges, and is better suited as an auxiliary signal.
The "reverse design" of JiTTests lies in moving the testing checkpoint forward to before the code lands, letting the LLM judge risk based on diff semantics and generate tests.
All Facts (8)
Meta's JiTTests system has moved from the experimental stage into production.
50%UnverifiedJiTTests generates expected-to-fail test cases for code changes (diffs) about to be merged, to expose risks before merging.
50%UnverifiedIn the first half of the year, JiTTests caught 74 privacy-related severe incidents (SEVs) before code was merged.
50%UnverifiedThe true-positive rate of JiTTests reported by engineers reached 60%.
50%UnverifiedJiTTests takes code diffs as input, lets an LLM analyze the semantics of the changes and generate test cases.
50%UnverifiedJiTTests chose to trigger only in the narrow scenario of "high-risk diffs" rather than running on all commits, in order to balance coverage and engineering feasibility.
50%UnverifiedA 60% true positive rate is above the middle level for LLM-generated tests, but is not yet sufficient to serve as a hard gate blocking merges, and is better suited as an auxiliary signal.
50%UnverifiedThe "reverse design" of JiTTests lies in moving the testing checkpoint forward to before the code lands, letting the LLM judge risk based on diff semantics and generate tests.
50%