[test optimization] Allow keeping user coverage configuration even if TIA is enabled#7700
Conversation
Overall package sizeSelf size: 4.93 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7700 +/- ##
==========================================
+ Coverage 80.24% 80.32% +0.08%
==========================================
Files 739 739
Lines 31960 31961 +1
==========================================
+ Hits 25646 25673 +27
+ Misses 6314 6288 -26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-03-06 17:36:39 Comparing candidate commit ff3b784 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 231 metrics, 29 unstable metrics. |
BridgeAR
left a comment
There was a problem hiding this comment.
The new env still needs to be registered in the central registry :)
Co-authored-by: Ruben Bridgewater <[email protected]>
done in adda8e5 |
… TIA is enabled (#7700)
… TIA is enabled (#7700)
What does this PR do?
Add
DD_TEST_TIA_KEEP_COV_CONFIGsupport to Jest TIA coverage handling and refines behavior based on whether coverage was enabled by dd-trace or by the user.Motivation
Users need a way to preserve their Jest coverage configuration during TIA runs, while still allowing dd-trace to optimize coverage work when coverage was only enabled internally.
Additional Notes
Add
DD_TEST_TIA_KEEP_COV_CONFIGto supported configurations.Behavior now:
collectCoverage+passWithNoTests.coverageReporters: ['none']and skip_addUntestedFilesonly when the user had not already configuredjestto run with code coverage.