-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Filter by group title also executes "root" tests #63
Comments
Is it not working with standalone Japa or was related to this adonisjs/assembler#51? |
Yep, it's not related to this PR |
Ohh. I just noticed one thing. The command should be npm run test -- --groups Maths.add The additional |
Oh yes sorry, I know that. I just made a mistake: I use pnpm, and pnpm forwards the arguments well this way ( no need for I'll give you another example to make it clearer: import { test } from '@japa/runner'
test.group('GroupOne', (group) => {
test('My Test', ({ assert }) => {
assert.isTrue(true)
})
})
test.group('GroupTwo', (group) => {
test('My Test', ({ assert }) => {
assert.isTrue(true)
})
})
test('Root', () => console.log('hey'))
|
Cool. Just wanted to make sure before giving it a go |
Description
Hey !
I just noticed that when filtering by a group name, tests that are not in a group are also executed.
Exemple :
When executing
npm run test --groups Maths.add
, the testroot
is also executedIs this the desired behavior? It seems a bit weird to me, and I don't see anything related to it in the documentation
( By the way it would be awesome if we could have an Algolia search 😋 )
Package version
@japa/runner 2.0.8
If you confirm that this is not the desired behavior, I can take care of it and suggest a PR 👍
The text was updated successfully, but these errors were encountered: