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

🐞 Use Rake's sh method to execute TestRunner's command #2560

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

aramprice
Copy link
Member

It turns out that using TestRunner#unit_execute with parallel: true always exits cleanly when called. Instead it passes back a hash containing an error: key.

This change modifies the rake task to insead use Rake's built in sh method to execute the parallel_test commmand generated by TestRunner which allows the rake task to fail correctly when there are spec failures.

Note: this change exposes failures in Github Actions which were incorrectly passing:

@aramprice aramprice force-pushed the rake-tasks-fail-when-specs-fail branch 2 times, most recently from c80cf08 to a7696a0 Compare September 14, 2024 03:15
It turns out that using `TestRunner#unit_execute` with `parallel: true`
always exits cleanly when called. Instead it passes back a hash
containing an `error:` key.

This change modifies the rake task to insead use Rake's built in `sh`
method to execute the `parallel_test` commmand generated by `TestRunner`
which allows the rake task to fail correctly when there are spec
failures.
@aramprice aramprice force-pushed the rake-tasks-fail-when-specs-fail branch from a7696a0 to bfd7fcc Compare September 16, 2024 17:40
@aramprice aramprice merged commit 5ee9f40 into main Sep 16, 2024
20 of 22 checks passed
@aramprice aramprice deleted the rake-tasks-fail-when-specs-fail branch September 16, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant