spectral icon indicating copy to clipboard operation
spectral copied to clipboard

chore(test-harness): generate tests out of scenarios

Open P0lip opened this issue 2 years ago • 2 comments

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 image

After image image

P0lip avatar Jul 24 '22 20:07 P0lip

@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.

NickHeap2 avatar Aug 01 '22 14:08 NickHeap2

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. :)

P0lip avatar Aug 01 '22 14:08 P0lip

: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:

stoplight-bot avatar Aug 30 '22 12:08 stoplight-bot