Skip to content

Test shouldn't perform call to backend #120

Open

Description

@JcMinarro

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

  1. TanishqBhardwaj commented on Feb 22, 2024

    @TanishqBhardwaj

    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?

  2. tbarbugli commented on Feb 26, 2024

    @tbarbugli
    Member

    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?

    makes sense :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions