Test components in the workspace. by default only runs tests for new and modified components
$bit test [component-pattern]
$bit at [component-pattern]
Arguments
Argument | Description | Required |
---|---|---|
component-pattern | component name, component id, or component pattern. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/**, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--watch | -w | start the tester in watch mode. | boolean |
--debug | -d | start the tester in debug mode. | boolean |
--all | -a | DEPRECATED. (use --unmodified) | boolean |
--unmodified | -u | test all components, not only new and modified | boolean |
--junit | - | write tests results as JUnit XML format into the specified file path | string |
--coverage | - | show code coverage data | boolean |
--env | -e | test only components assigned the given env | string |
--scope | -s | DEPRECATED. (use the pattern instead, e.g. "scopeName/**"). name of the scope to test | string |