Tests de Bout en Bout
You are reading the documentation for version 2 of FoalTS. Instructions for upgrading to this version are available here. The old documentation can be found here.
End-to-end tests are located in the src/e2e
directory.
#
Build and Run E2E Tests#
Watch mode (for development)This command builds and executes the e2e tests. If you modify a file and save it, the code is rebuilt and the tests are run again. This is particularly useful in development: you do not need to re-run the command every time you make code changes.
The process runs forever until you stop it.
#
Simple mode (for CI and Git hooks)If you need to build and run the tests only once, you can use these two commands:
These commands are particularly useful when you want to integrate your tests into a CI pipeline or a Git hook.
SuperTest
library#
The You can use the SuperTest library to write your e2e tests. It is installed by default.
Example: