Open
Description
Describe the bug
I have created 1 tag which I have added to some tests.
tags: ['sequential-test-execution'],
I then run these 2 commands:
npx test-storybook --browsers chromium --coverage --junit --ci --maxWorkers=1 --includeTags="sequential-test-execution"
npx test-storybook --browsers chromium --coverage --junit --ci --maxWorkers=1 --excludeTags="sequential-test-execution"
I expect the command that has includeTags
to run my 24 tests and the command that has excludeTags
to run all of the other tests that dont have the tag sequential-test-execution
. But instead I get this:
I have 24 story files in total. As you can see, the first command is skipping all tests (even those that have the tag), and the second command is executing all tests. How am I meant to use this tag to filter tests using the test-runner?
To Reproduce
import { StoryFn, StoryObj } from '@storybook/react';
export default {
title: 'Runtime-Integration/MyModal',
tags: ['sequential-test-execution'],
component: MyModalWC,
parameters: {
docs: componentDocs,
},
argTypes: {
...wcPropsDescriptions,
},
} as StoryObj<typeof MyModalWC>;
System
Environment Info:
System:
OS: macOS 14.3
CPU: (10) arm64 Apple M2 Pro
Binaries:
Node: 18.20.2 - ~/.local/share/mise/installs/node/18.20.2/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.5.0 - ~/.local/share/mise/installs/node/18.20.2/bin/npm
Browsers:
Chrome: 125.0.6422.77
Edge: 125.0.2535.51
Safari: 17.3
### Additional context
_No response_