© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. D. CallaghanAngular for Business https://doi.org/10.1007/978-1-4842-9609-7_15

15. Diagnosing Random Angular Test Failures

Michael D. Callaghan1  
(1)
Celebration, FL, USA
 

Have you ever had an intermittent or random failure in your unit tests? I did, and I was pulling my hair out trying to discover the problem. In this chapter, I will describe how I finally managed to find the offending tests and solve the problem.

TLDR

Here are the things I discovered during this process:
  • Understand that tests run in no particular order, and that is ideally what you want.

  • Turn off random execution to help find the culprit.

  • If sequential execution does not help, try various random ...

Get Angular for Business: Awaken the Advocate Within and Become the Angular Expert at Work now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.