Test components in the workspace. by default only runs tests for new and modified components
$bit test [component-pattern]
Copiedcopy
$bit at [component-pattern]
Copiedcopy

Arguments

ArgumentDescriptionRequired
component-patterncomponent 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

OptionOption AliasDescriptionValue Type
--watch-wstart the tester in watch mode.boolean
--debug-dstart the tester in debug mode.boolean
--all-aDEPRECATED. (use --unmodified)boolean
--unmodified-utest all components, not only new and modifiedboolean
--junit-write tests results as JUnit XML format into the specified file pathstring
--coverage-show code coverage databoolean
--env-etest only components assigned the given envstring
--scope-sDEPRECATED. (use the pattern instead, e.g. "scopeName/**"). name of the scope to teststring