Search code examples
javascripttypescriptava

Get number of concurrent tests running in AVA


I have test cases that are failing due timestamp differences as a result of a lot of tests running at once. I want to adjust the difference depending on the number of test cases running at point in time.

Is there a way to get the number of test cases that AVA is currently running? It doesn't appear that a search has a lot of information on this issue.


Solution

  • No AVA does not provide this.

    Why do you encounter timestamp differences? Might your tests be too brittle?

    Perhaps it'll help if you use test.serial()?