You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to use the new "Re-run only failed tests" feature in CircleCI. This entails being able to run specs on an individual basis, is this something test-runner could provide?
Here's how I am achieving this with Jest:
yarn jest --listTests | circleci tests run --command="xargs yarn jest --ci --runInBand"
--listTests provides a space/new-line delimited list of specs to run, which are then piped to the second command, allowing certain tests to be run individually
The text was updated successfully, but these errors were encountered:
oh, in my project, I am probably getting the expected results by doing the following(passing two --):
yarn test -- -- --listTests
yarn run v1.19.0
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ test-storybook --stories-json -- --listTests
/private/var/folders/xxx/yyy/components-foo.test.js
/private/var/folders/xxx/yyy/components-bar.test.js
...snip...
I'd like to be able to use the new "Re-run only failed tests" feature in CircleCI. This entails being able to run specs on an individual basis, is this something
test-runner
could provide?Here's how I am achieving this with Jest:
--listTests
provides a space/new-line delimited list of specs to run, which are then piped to the second command, allowing certain tests to be run individuallyThe text was updated successfully, but these errors were encountered: