Issue
We're trying to write instrumentationTest for our app.
For example I want to write test for authorization/registration.
However before every test I want to be unauthorized? so I need to clean all data, delete db, etc.
So is there any way to delete app or app's data before every test?
Solution
Use Annotations eg:
@BeforeEach
and put your clean up code there.
Answered By - Jigish Chawda
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.