mirror of
https://github.com/biomejs/biome.git
synced 2025-12-23 08:21:13 +00:00
|
|
||
|---|---|---|
| .. | ||
| git-ignore-paths | ||
| relative-path | ||
| relative-path-ignore-file | ||
| README.md | ||
| test-all.sh | ||
End-to-end tests
e2e-tests directory allows testing the Biome CLI directly.
Each directory in e2e-tests is a test that represents a project using Biome.
Every directory must include a shell script named test.sh.
The exit status of the script determines if the test passed or failed.
For example, the following script executes biome lint:
# fail if any command fail or if some variables are undefined
set -eu
cargo run --bin biome -- lint src
If the command reports lint error, then the script fails and makes the test fails.
The working directory is always set to the directory that holds test.sh.