-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Parallel and serial test running in one command #1107
Comments
Hey! You can use test.serial('requires to run serially', t => {
// ...
}); |
And if all tests in a file are serial, you can import just the import {serial as test} from 'ava';
// this is a serial test
test(t => {}); |
Thanks for answers but my before hooks still not work serially. It would be great to have one modifier for many tests of for one file. Like: test.serial('all stuff inside of me is serial', t => {
test(t => {});
test(t => {});
}); |
|
See @sindresorhus's solution above on how to accomplish this: #1107 (comment). |
Hello. Currently I'm running tests with using this npm scripts:
Some tests I can run parallel and some test I can't. What about parsing
serial
string in file name and run them serially? It would be great, because my approach is not too fast.The text was updated successfully, but these errors were encountered: