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

3634 – Refactor Kwai testing #399

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Conversation

vasconsaurus
Copy link
Contributor

Description

This is part of a larger project to improve our testing.

Context
We have two issues:

  • We want to be able to choose when to run integration tests.
  • We have too many integration tests.

To fix this we need to go through all the parsers and:

  • Split the integration from the unit tests, we now have a folder for them (test > integration > parsers).
  • Go through the unit tests and make sure they are not making live http requests.
  • Go through the integration tests, see which one of those should be integration tests (keep those at 2, 3 tests at the most), and refactor the rest to be unit tests. (ideally we want one to test a successful request and one to test a failure)

Notes on the Kwai tests

This one was pretty straight forward:

  • I moved integration test to it's own file
  • Created a new integration test that makes sure it returns data even if it fails
  • No clean up was needed

References: 3634, 3629

- moved integration test to it's own file
- created a new integration test that makes sure it returns data even if
it fails
@vasconsaurus vasconsaurus changed the title 3629 – Refactor Kwai testing 3634 – Refactor Kwai testing Oct 3, 2023
@codeclimate
Copy link

codeclimate bot commented Oct 3, 2023

Code Climate has analyzed commit f269d1e and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 98.6% (0.0% change).

View more on Code Climate.

@vasconsaurus vasconsaurus marked this pull request as ready for review October 3, 2023 13:21
Copy link
Contributor

@caiosba caiosba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and clean!

@vasconsaurus vasconsaurus merged commit 66b93eb into develop Oct 3, 2023
4 checks passed
@vasconsaurus vasconsaurus deleted the 3629-refactor-kwai-testing branch October 3, 2023 13:53
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

Successfully merging this pull request may close these issues.

2 participants