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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parallel rspec tests #122

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

lawrencegripper
Copy link

@lawrencegripper lawrencegripper commented May 18, 2023

This PR adds support for using parallel_rspec to the test adapter.

The main changes require where:

  1. Allow a slightly different command syntax to be passed
  2. Instead of receiving just one 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

@lawrencegripper lawrencegripper changed the title WIP: Support parallel rspec tests Support parallel rspec tests May 18, 2023
@lawrencegripper lawrencegripper marked this pull request as ready for review May 18, 2023 15:58
// 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",
Copy link
Author

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:
Copy link
Author

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"
Copy link
Author

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

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.

None yet

1 participant