-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: use queue instead of groups for parallel tests (#886)
* perf: use queue instead of group for parallel tests * refactor: removes unreachable code * ci: add tests * chore: force interruption of already started tests when using `failFast` * refactor: remove unreachable code * ci: compare without concurrency limit * ci: rollback concurrency limit * chore: leave user errors to the user * chore: leave user errors to the user
- Loading branch information
1 parent
5a8af21
commit 96b8707
Showing
4 changed files
with
73 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { test } from '../../src/modules/helpers/test.js'; | ||
import { assert } from '../../src/modules/essentials/assert.js'; | ||
import { inspectPoku, isBuild } from '../__utils__/capture-cli.test.js'; | ||
import { skip } from '../../src/modules/helpers/skip.js'; | ||
|
||
if (isBuild) { | ||
skip(); | ||
} | ||
|
||
test('No tests with unlimited concurrency', async () => { | ||
const output = await inspectPoku('--debug --parallel --concurrency=0', { | ||
cwd: 'test/__fixtures__/e2e/no-tests', | ||
}); | ||
|
||
assert.strictEqual(output.exitCode, 0, 'Exit Code needs to be 0'); | ||
assert( | ||
/debug(.+)?:(.+)?true/.test(output.stdout), | ||
'CLI needs to able "debug"' | ||
); | ||
assert( | ||
/concurrency(.+)?:(.+)?0/.test(output.stdout), | ||
'CLI needs to able "concurrency"' | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters