tfjs/e2e
Matthew Soulanille 51577688f1
Move nightly publishing tests and release branch tests to github actions (#8555)
[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)
2025-04-28 09:07:00 -07:00
..
benchmarks
custom_module Move nightly publishing tests and release branch tests to github actions (#8555) 2025-04-28 09:07:00 -07:00
integration_tests
script_tag_tests Move nightly publishing tests and release branch tests to github actions (#8555) 2025-04-28 09:07:00 -07:00
scripts Move nightly publishing tests and release branch tests to github actions (#8555) 2025-04-28 09:07:00 -07:00
webpack_test Move nightly publishing tests and release branch tests to github actions (#8555) 2025-04-28 09:07:00 -07:00
.npmignore
.npmrc
README.md
cloudbuild.yml
karma.conf.js Move nightly publishing tests and release branch tests to github actions (#8555) 2025-04-28 09:07:00 -07:00
package.json
tsconfig.json
tslint.json
yarn.lock Move nightly publishing tests and release branch tests to github actions (#8555) 2025-04-28 09:07:00 -07:00

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