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

suggestion: bail on first failing integration test #168

Merged

Conversation

lenkan
Copy link
Collaborator

@lenkan lenkan commented Dec 7, 2023

This is just a suggestion. I think it makes sense to bail on the test run when we encounter the first failing test. This will give you quicker feedback on the build if a test is failing.

Note that this is only for the integration tests.

Copy link

codecov bot commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c0727b6) 81.36% compared to head (34e46b3) 81.36%.

Additional details and impacted files
@@             Coverage Diff              @@
##           development     #168   +/-   ##
============================================
  Coverage        81.36%   81.36%           
============================================
  Files               46       46           
  Lines             4149     4149           
  Branches          1030     1030           
============================================
  Hits              3376     3376           
  Misses             741      741           
  Partials            32       32           

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

@psteniusubi
Copy link
Contributor

I agree with this.
In addition I think we should use for example jest --testTimeout 30000 to specify a fairly long test timeout by default. Then make sure there are no integration tests that "wait forever" for operations or notifications. This because jest reporting of tests failing because of test timeout is quite bad.

@lenkan
Copy link
Collaborator Author

lenkan commented Dec 7, 2023

@psteniusubi Good suggestion! Please see #169 for my proposal on the timeout solution.

@psteniusubi
Copy link
Contributor

Is there a config option for --runInBand? I couldn't immediately find it.
Running integration tests in parallel seems to cause issues, so having this enabled by default could be helpful.

@lenkan
Copy link
Collaborator Author

lenkan commented Dec 7, 2023

Is there a config option for --runInBand? I couldn't immediately find it. Running integration tests in parallel seems to cause issues, so having this enabled by default could be helpful.

Currently not, but you can work around it: jestjs/jest#3215

@pfeairheller pfeairheller self-requested a review December 7, 2023 15:19
@pfeairheller pfeairheller merged commit 3573bc0 into WebOfTrust:development Dec 7, 2023
5 checks passed
@lenkan lenkan deleted the chore-bail-on-integration-test branch December 18, 2023 09:08
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.

3 participants