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

test: move type assertion helpers to testhelpers package #4357

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

Codelax
Copy link
Member

@Codelax Codelax commented Dec 13, 2024

I added helpers to core/testing in a previous PR to help use write tests. I moved these helpers to testhelpers to avoid adding more to core.
I also used these new helpers in some instance tests.

The goal of those helpers is to limit test crashing. If a test crash, it will stop the whole test suite. If we make tests fail on failed type assertions, the rest of the test suite will still run.

@Codelax Codelax added the tests label Dec 13, 2024
@github-actions github-actions bot added the instance Instance issues, bugs and feature requests label Dec 13, 2024
@Codelax Codelax force-pushed the test/type-assertion-helpers branch from cde41bc to abd0dda Compare December 13, 2024 13:16
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.88%. Comparing base (5bf53e0) to head (abd0dda).
Report is 391 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4357      +/-   ##
==========================================
- Coverage   75.45%   70.88%   -4.57%     
==========================================
  Files         202      295      +93     
  Lines       44323    65494   +21171     
==========================================
+ Hits        33444    46428   +12984     
- Misses       9653    17436    +7783     
- Partials     1226     1630     +404     

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

@Codelax Codelax marked this pull request as ready for review December 16, 2024 09:09
@Codelax Codelax requested a review from remyleone as a code owner December 16, 2024 09:09
@remyleone remyleone added this pull request to the merge queue Dec 17, 2024
Merged via the queue into scaleway:master with commit 2285160 Dec 17, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
instance Instance issues, bugs and feature requests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants