Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Running all untagged tests except specific tagged ones #55

Open
robross0606 opened this issue Jan 9, 2024 · 1 comment
Open

Running all untagged tests except specific tagged ones #55

robross0606 opened this issue Jan 9, 2024 · 1 comment

Comments

@robross0606
Copy link

robross0606 commented Jan 9, 2024

Our project has a lot of test suites. To avoid modifying all of them, we want to run specific tests separately "in band" while the rest can run in parallel. To accomplish this, I annotated a couple files with @group solo but all other files were not tagged at all.

I then ran this which seemed to work:

npx jest --group=solo --coverage=false --maxWorkers='1'

Only the specific tagged test suites were executed as desired. However, I then tried running this:

npx jest --group=-solo --coverage=true

I would have expected this to run all tests that are not tagged with "solo". Instead, everything was run including the tests with @group solo in them.

@robross0606
Copy link
Author

This may be the same issue as described in #47 but I'm not sure from the wording.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant