1

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.

Joseph Woolf
  • 500
  • 5
  • 14

1 Answers1

0

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()?

Mark Wubben
  • 3,329
  • 1
  • 19
  • 16
  • Is it possible to request for this feature then? Running tests on a local machine is fine. Once I run them on an CI environment, then these issues show up – Joseph Woolf Oct 02 '20 at 14:56
  • No. Your tests shouldn't be failing on CI for timestamp reasons. You need to consider if you're testing the right thing. – Mark Wubben Oct 03 '20 at 15:29