Skip to main content

test

Overview

Taq test is used to initialize test partitions and run Jest tests in Taqueria. Taqueria Partitions are directories that contain test configurations and test specs. You can easily run all tests in a given partition by passing the name of the partition to the test command

note

If you run taq test without any arguments, it will initialize a default test partition in a folder called tests

Plugin Implementations

This task is implemented by the following plugins:

Plugin NameDescription
@taqueria/plugin-jestInitializes Jest configurations and runs tests

Command

taq test [partition]

Task Details

Task NameCommandTypeDescription
testtaq test [partition]Plugin - testingRuns the tests in the provided partition(folder)

Command-Line Arguments

ArgumentRequiredShortflagDescriptionExample Usage
[partition]NoThe name of the partition (test folder) to targettaq test e2e-tests
testPatternNo-tRun test files that match the provided patterntaq test -t /e2e/gms
initNo-iInitialize a new test partitiontaq test -i integration-tests

Usage

DescriptionCommandBehaviour
Run all tests in the default foldertaq testRuns all test specs found in the default partition (/tests folder)
Initialize a new test partitiontaq test [partition] --initCreates a new test partition named with the provided name
Run all tests in a given partitiontaq test [partition]Runs all test specs found in the provided partition (folder)
Run test files that match the provided patterntaq test -testPattern <testPattern>Runs the tests that match the provided regex expression