mirror of https://github.com/tensorflow/tfjs.git
[Example nightly release and publish test](https://github.com/mattsoulanille/tfjs/actions/runs/14672995746/job/41183624273) [Example release PR test](https://github.com/mattsoulanille/tfjs/actions/runs/14674243426/job/41187438555?pr=1) |
||
|---|---|---|
| .. | ||
| benchmarks | ||
| custom_module | ||
| integration_tests | ||
| script_tag_tests | ||
| scripts | ||
| webpack_test | ||
| .npmignore | ||
| .npmrc | ||
| README.md | ||
| cloudbuild.yml | ||
| karma.conf.js | ||
| package.json | ||
| tsconfig.json | ||
| tslint.json | ||
| yarn.lock | ||
README.md
Usage
This package contains integration and e2e tests for TensorFlow.js.
To run the tests in local:
Filter tests by tag:
export TAGS=#SMOKE,#REGRESSION,#GOLDEN
yarn test
Filter tests by grep:
yarn test --grep cpu
Add new tests:
When creating new test, add at least one tag to the test description.
Supported tags:
- SMOKE: Smoke tests should be light weight. Run in every PR and nightly builds. Criteria for smoke test is that the test should run fast and only test critical CUJ.
- REGRESSION: Regression tests compare results across backends, previous builds, with other platform, etc. Run in nightly builds. Need additional steps to run in local.
- GOLDEN: Golden tests validate pretrained model outputs against the prebuilt golden outputs. Need additional steps to run in local.
To add a new tag: Extend the TAGS list in integration_tests/util