Testing Architecture for Authentication #2999
robertjcolley
started this conversation in
General
Replies: 2 comments 5 replies
-
@NS-BOBBY-C Each test suite should be able to run in isolation. We generate a new user with clean state per suite, and then test any state build up in that suite. |
Beta Was this translation helpful? Give feedback.
3 replies
-
One of the strongest recommendations that we have involves test isolation. If you want to be able to gain confidence in your tests, reduce flakiness and to easily debug test failures, you really need to eliminate tests residue. You read about it under the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Detox Community!
I love the work being done here and I'm looking to get advice on how to solve some problems which a lot of applications will have.
Our app has authentication, HTTPS requests to our server for data, and features which allow the system to build up system state. One of the biggest challenges I've had with Detox is that the tests don't run in a consistent order, and then state building up in the application across tests / user flows causes other tests to be flaky.
I'm wondering if there are any guidelines which the community follows to deal with these issues - maybe its how the tests are structured, the scope of the tests, etc. I'd be happy to share anything we have figured out and want to start a discussion about how to make testing more effective!
Beta Was this translation helpful? Give feedback.
All reactions