How can we eradicate non-determinism in tests?

Category: Microservices ArchitectureHow can we eradicate non-determinism in tests?
Editor">Editor Staff asked 2 years ago

How can we eradicate non-determinism in tests?

1 Answers
Editor">Editor Staff answered 2 years ago

Non-Deterministic Tests (NDT)  are basically unreliable tests.  So, sometimes it may happen that they pass and obviously sometimes they may also fail. As and when they fail, they are made to re-run to pass.
Some ways to remove non-determinism from tests are as follows:

  1. Quarantine
  2. Asynchronous
  3. Remote Services
  4. Isolation
  5. Time
  6. Resource leaks