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

Refactor Tests to Use Separate Swagger Schemas Where Possible for Better Isolation #5

Open
IRaccoonI opened this issue Aug 19, 2024 · 0 comments

Comments

@IRaccoonI
Copy link

Some tests currently use the same Swagger schemas, which can lead to unintended dependencies and reduce test isolation. To enhance the reliability and maintainability of our test suite, we should refactor tests to use separate Swagger schemas wherever possible. This will ensure that each test is more isolated and less likely to be affected by changes in other tests.

Proposed Changes:

  • Identify tests that are currently sharing Swagger schemas.
  • Refactor these tests to use their own separate Swagger schemas, ensuring they are isolated from other tests.
  • Where schema sharing is necessary, ensure that it is done in a controlled manner and document the rationale behind it.

Benefits:

  • Improved Test Isolation: By using separate schemas, tests will be less likely to interfere with each other, leading to more consistent and reliable test outcomes.
  • Enhanced Maintainability: Isolated schemas will make it easier to update and debug tests without affecting others.
  • Reduced Risk of Regression: Independent schemas decrease the chance that changes in one test will cause unintended failures in another.

This refactor will lead to a more robust and trustworthy test suite, allowing for safer and more efficient development processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant