Test commands.
This directory contains make rules for running project unit tests.
Usage: make <command> [<ENV_VAR>=<value> <ENV_VAR>=<value> ...]
Runs unit tests.
$ make testThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test TESTS_FILTER='.*/blas/base/dasum/.*'Runs a specified list of files containing unit tests.
$ make test-files FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs unit tests in the local environment.
$ make test-localThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-local TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing unit tests.
$ make test-files-local FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs unit tests and summarizes aggregated TAP output.
$ make test-summaryThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-summary TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing unit tests.
$ make test-files-summary FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs unit tests and generates raw TAP output.
$ make test-tapThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-tap TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing unit tests and generates raw TAP output.
$ make test-files-tap FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs unit tests and converts TAP output to xUnit XML.
$ make test-xunitThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-xunit TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing unit tests and converts TAP output to xUnit XML.
$ make test-files-xunit FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs JavaScript unit tests.
$ make test-javascriptThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-javascript TESTS_FILTER='.*/blas/base/dasum/.*'Runs a specified list of files containing JavaScript unit tests.
$ make test-javascript-files FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs JavaScript unit tests in the local environment.
$ make test-javascript-localThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-javascript-local TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing JavaScript unit tests.
$ make test-javascript-files-local FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs JavaScript unit tests and summarizes aggregated TAP output.
$ make test-javascript-summaryThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-javascript-summary TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing JavaScript unit tests.
$ make test-javascript-files-summary FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs JavaScript unit tests and minimizes aggregated TAP output.
$ make test-javascript-minThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-javascript-min TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing JavaScript unit tests and minimizes aggregated TAP output.
$ make test-javascript-files-min FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs JavaScript unit tests and generates raw TAP output.
$ make test-javascript-tapThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-javascript-tap TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing JavaScript unit tests and generates raw TAP output.
$ make test-javascript-files-tap FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
Runs JavaScript unit tests and converts TAP output to xUnit XML.
$ make test-javascript-xunitThe command supports the following environment variables:
- TESTS_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*. - FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
$ make test-javascript-xunit TESTS_FILTER='.*/blas/base/dasum/.*'Runs, in the local environment, a specified list of files containing JavaScript unit tests and converts TAP output to xUnit XML.
$ make test-javascript-files-xunit FILES='/foo/test.js /bar/test.js'The command supports the following environment variables:
- FILES: list of test file paths.
- FAST_FAIL: flag indicating whether to stop running tests upon encountering a test failure.
- Commands supporting a
FILESenvironment variable are useful when wanting to run a list of test files generated by some other command (e.g., a list of changed test files obtained viagit diff). - Commands supporting a
TESTS_FILTERenvironment variable are useful when wanting to glob for test files (e.g., run all tests for a particular package). - For
-localcommands, "local" refers to the local development environment, as opposed to running in a headless browser or on CI.