For our system we have two types of tests:
- Unit tests - built and run when software is built.
- Integration/automated tests - scheduled and run after software is built.
We could probable manage to create coverage data for unit tests in the same pipeline as running the scanner. But the automated tests run for many hours and the build does not wait for its result. Is it possible to upload more results later? Best would be if it could complement data uploaded during scanning.
Based on a few topics like below this does not seem possible currently:
- Separate Coverage for Unit and Integration Tests
- Is it possible to upload test execution and coverage data separately from running sonar-scanner analysis?
Can you say anything about current plans to support this? Of the two, uploading data from integration/automated tests at a later time would for us be more important.