Let’s share what is the best answer to this interview question.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Leone Costa
The non-deterministic tests are those, which are not reliable. So it could happen that they pass and sometimes they may fail. When they fail as well, they are made to rerun in order to pass. The following are some of the means by which to remove non determinism within tests:
• Isolation
• Time
• Resource leaks
• Remote
• Asynchronous
• Quarantine
SudipSikdar
Run the tests in isolation.Don’t use sleep for asynchronous responses, instead use callback or polling. wrap the system clock so that it can be substituted for testing.