spectral
spectral copied to clipboard
chore(test-harness): generate tests out of scenarios
Should fix the issue with constantly failing test-harness on Windows + generally increase the speed of test-harness step.
Checklist
- [x] Tests added / updated
- [x] Docs added / updated
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
Before
After
@P0lip Hi, I've done some work in our internal rules testing version of the test harness converting to Jest test.concurrent that runs the tests in parallel. On my dev machine it can run 10 tests in parallel which brings the testing time right down. Let me know if you'd be interested in it.
Hi, thanks for reaching out!
There isn't any particular need for test.concurrent
here, as each test file has only one scenario in it, so they'll be all run in parallel. In other words, each test-harness scenario translates to a single test file.
Either way, I'd be very interested to see what you've all done. :)
:tada: This PR is included in version @stoplight/spectral-ruleset-migrator-v1.7.4 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket: