- Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Command
test
Description
It would be great to have an option in angular.json to set the time watermark of the progress reporters.
This option would behave similar to the new coverageWatermark option in angular.json that allows us to change the color coding for high, medium, and low coverage.
Currently the reporter time threshold is hard-coded to 300 ms with the Vitest unit-test. If a test runs slower than 300 ms, the test suite is highlighted in yellow and the test is shown and highlighted in yellow.
There is currently no option to configure that hard-coded value.
Describe the solution you'd like
This could either be a new option of the unit-test configuration like
test": { "builder": "@angular/build:unit-test", "options": { ... "reporterWatermark ": 1000, ... }
or an option within the "reporters" tuple.
This specific example would set the reporter watermark to 1000 ms and only tests that run slower than 1000 ms would be highlighted in yellow.
Internally, this option would set Vitest's slowTestThreshold option.
Describe alternatives you've considered
No response