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 #230

Merged
merged 2 commits into from
Apr 15, 2024
Merged

Refactor tests #230

merged 2 commits into from
Apr 15, 2024

Conversation

Shatur
Copy link
Contributor

@Shatur Shatur commented Apr 15, 2024

Current integration tests categorization doesn't scale well for the amount of tests cases we have. I made the following changes to address it:

  1. Split init_replication test into removals, insertion, spawn and despawn.
  2. Split insertion and removal test with multiple components into separate tests.
  3. Thanks to code coverage I found a missing test case for spawning an entity from a mapped component, added.

Current integration tests categorization doesn't scale well for the
amount of tests cases we have. I made the following changes to address
it:

1. Split `init_replication` test into `removals`, `insertion`, `spawn`
   and `despawn`.
2. Split insertion and removal test with multiple components into
   separate tests.
3. Thanks to code coverage I found a missing test case for spawning an
   entity from a mapped component, added.
@Shatur Shatur requested a review from UkoeHB April 15, 2024 15:24
I did a little refactoring right before committing and
accidentally made a mistake with the check.
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.62%. Comparing base (70a3bdc) to head (22d646b).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #230      +/-   ##
==========================================
+ Coverage   90.44%   90.62%   +0.18%     
==========================================
  Files          28       28              
  Lines        1717     1718       +1     
==========================================
+ Hits         1553     1557       +4     
+ Misses        164      161       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Shatur Shatur merged commit 70db508 into master Apr 15, 2024
5 checks passed
@Shatur Shatur deleted the refactor-integration-tests branch April 15, 2024 16:15
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