Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add Integration Tests Using WireMock #18

Open
4 tasks
guibranco opened this issue Jan 19, 2023 · 0 comments
Open
4 tasks

[FEATURE] Add Integration Tests Using WireMock #18

guibranco opened this issue Jan 19, 2023 · 0 comments
Labels
enhancement New feature or request gitauto GitAuto label to trigger the app in a issue. good first issue Good for newcomers hacktoberfest Participation in the Hacktoberfest event help wanted Extra attention is needed 🧪 tests Tasks related to testing

Comments

@guibranco
Copy link
Owner

guibranco commented Jan 19, 2023

Description:

To enhance the reliability of our application and ensure that the integration with the Locaweb API functions as expected, we need to implement integration tests using WireMock. This will allow us to simulate server responses without relying on the actual Locaweb API, facilitating a more controlled testing environment.

Tasks:

  1. Set Up WireMock:

    • Integrate WireMock into the existing test project.
    • Configure WireMock to mock requests and responses for the Locaweb API.
  2. Mock Request/Response:

  3. Write Integration Tests:

    • Implement integration tests that use WireMock to simulate API interactions.
    • Ensure that the tests cover various scenarios, including success and failure cases.
  4. Reference Materials:

  5. Testing and Validation:

    • Run the integration tests to ensure that they work as expected.
    • Validate that the mocked responses accurately reflect the Locaweb API behavior.
  6. Documentation:

    • Document the setup process and usage of WireMock in our project for future reference.

Acceptance Criteria:

  • WireMock is successfully integrated into the test project.
  • Mock requests and responses for the Locaweb API are correctly implemented.
  • Integration tests cover a range of scenarios and pass successfully.
  • Documentation is updated with instructions on using WireMock for integration testing.
@guibranco guibranco added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers test labels Jan 19, 2023
@guibranco guibranco self-assigned this Jan 24, 2023
@guibranco guibranco removed their assignment Jun 30, 2023
@guibranco guibranco added 🧪 tests Tasks related to testing and removed test labels Jul 24, 2023
@guibranco guibranco changed the title Use MOQ to mock tests against Locaweb API server Add Integration Tests Jul 24, 2023
@guibranco guibranco added the hacktoberfest Participation in the Hacktoberfest event label Oct 7, 2023
@guibranco guibranco changed the title Add Integration Tests [FEATURE] Add Integration Tests May 15, 2024
@gitauto-ai gitauto-ai bot added the gitauto GitAuto label to trigger the app in a issue. label Jul 9, 2024
@guibranco guibranco changed the title [FEATURE] Add Integration Tests [FEATURE] Add Integration Tests Using WireMock Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gitauto GitAuto label to trigger the app in a issue. good first issue Good for newcomers hacktoberfest Participation in the Hacktoberfest event help wanted Extra attention is needed 🧪 tests Tasks related to testing
Projects
None yet
Development

No branches or pull requests

1 participant