You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, our tests are performing calls to our backend server and they need concrete creds/config to pass.
It is not the best approach, because if any of our tests fail, we can't be sure it is because the code we changed is breaking them, the network connection to our backend was not good, or the backend server is not working as expected just at the moment our tests are running.
To improve it we should provide some Mock Server (There are different libs that can help us like MockWebServer or WireMock) configuring the expected responses for every request our tests need to perform
Activity
TanishqBhardwaj commentedon Feb 22, 2024
Hey @JcMinarro , can I pick this task?
As far as I can see we have unit tests that are calling the backend server, which I need to mock using Mockito or any other library.
Do we also have other tests than unit tests which need to be modified?
tbarbugli commentedon Feb 26, 2024
makes sense :)