Improve Jest tests by showing running test file upon unexpected termination on Jenkins #59728
Labels
Feature:Functional Testing
Team:Operations
Team label for Operations Team
Team:QA
Team label for QA Team
If a Jest test file exists unexpectedly on Jenkins, you don't see which file was running when the program exited:
Please ignore that you, in this case, could inspect the stack trace to gather which test-file was responsible. This isn't always possible due to the async nature of Node.js, or if there isn't any stack trace.
However, if you run the same test locally you'll see a
RUNS
line:Here it's easy to see that the unexpected termination happened in
src/cli/cluster/cluster_manager.test.ts
.Being able to see this when the tests run in Jenkins would be very helpful and remove a lot of wasted time spent recreating the issue.
The text was updated successfully, but these errors were encountered: