-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support parallel rspec tests #122
base: main
Are you sure you want to change the base?
Support parallel rspec tests #122
Conversation
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node | ||
{ | ||
"name": "Node.js & TypeScript", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to remove this one, added as I was testing in codespaces but haven't tweaked it to have everything needed, just a basic starting point
@@ -5,6 +5,7 @@ on: | |||
branches: | |||
- main | |||
pull_request: {} | |||
workflow_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's you manually start it from the ui for a branch
@@ -10,8 +10,9 @@ | |||
"--extensionDevelopmentPath=${workspaceFolder}" | |||
], | |||
"outFiles": [ | |||
"${workspaceFolder}/out/src" | |||
] | |||
"${workspaceFolder}/out/**/*.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this helped the debugger correctly pick up break points, guess it meant source maps where available but not sure
This PR adds support for using
parallel_rspec
to the test adapter.The main changes require where:
START_OF_TEST_JSON
line I'd get 1 per parallel execution and need to merge them all back together.Note the parallel test suite partitions by file so it only really makes sense to use this when the whole suite is being run.
For the codebase I work on this made it go from 7mins to 1min to execute all tests 🥳
CI Action here is ✔️ https://github.com/lawrencegripper/vscode-ruby-test-adapter/actions/runs/5015831721
Here it is in action 👇
Kazam_screencast_00010.webm