biome/e2e-tests
Emanuele Stoppa 836fa1e94c
fix: resolve settings based on path (#6175)
Co-authored-by: arendjr <533294+arendjr@users.noreply.github.com>
2025-05-30 12:09:24 +01:00
..
git-ignore-paths fix(core): push ignore matches using their directories (#5494) 2025-03-28 17:17:27 +00:00
relative-path fix: resolve settings based on path (#6175) 2025-05-30 12:09:24 +01:00
relative-path-ignore-file fix: resolve settings based on path (#6175) 2025-05-30 12:09:24 +01:00
README.md test: add end-to-end tests (#5117) 2025-02-13 18:08:20 +01:00
test-all.sh test: add end-to-end tests (#5117) 2025-02-13 18:08:20 +01:00

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.