Test Impact Analysis with Selection On
How to use and how it affects your Dashboard and TGA?
1. TIA and “Selection On”
When turning the “Selection On” functionality, SeaLights agent will send your Test Runner a list of tests to be skipped from the coming test cycle.
Skipped tests list:
Impacted Tests
Failed Tests
New Tests
Previously Recommended and not Executed
2. How to use Coverage metric while using Selective Test Execution (TIA Selection ON Guidelines)
Use TGA (Test Gap Analytics) to track your overall Coverage.
TGA has an aggregation engine that calculates your coverage across all tests and all builds.
Do NOT Use Dashboard to track total coverage
Overall Coverage will be less/equal than your previous numbers
(Due to the fact that only a subset of your tests will be running).Coverage % fluctuations may occur.
(due to periodic full runs)Use the Dashboard to track your Quality Risks.
Do NOT use Quality Gates and Notifications for “Total Coverage”
Due to Selective test runs, total coverage per each build is expected to drop.
Important! Quality Gates and Notification Should be applied to Modified Code / Failed tests thresholds
3. Best Practice - Step by Step
Review the recommendations for supported frameworks
Selection on - Run a subset of tests (Impacted, Failed, etc…)
A typical “Selection On” view - includes all the apps and stages which have activated the smart test execution engine.
TIA Configuration can be easily performed via Settings menu (Settings → TIA Settings)
Step by Step Configuration:
Set default full test Policy
2. Set App run Policy
Select app
Select Branch
Select the test stage
Full Run
No code changes
3. Quality Gates - Should be applied only on Modified Code / Failed tests criteria
4. Use QTI/TGA to get the overall coverage data