Allow to run only some specific GUI tests

This commit is contained in:
Guillaume Gomez
2025-03-10 13:31:40 +01:00
parent 07b25cdb64
commit fc7ef59dee
2 changed files with 55 additions and 5 deletions

View File

@@ -144,9 +144,15 @@ GUI tests are checked with the GUI testsuite. To run it, you need to install `np
cargo test --test gui
```
If you want to only run some tests, you can filter them by passing (part of) their name:
```
cargo test --test gui -- search
```
The first time, it'll fail and ask you to install the `browser-ui-test` package. Install it then re-run the tests.
If you want to disable the headless mode, use the `DISABLE_HEADLESS_TEST=1` environment variable:
If you want to disable the headless mode, use the `--disable-headless-test` option:
```
cargo test --test gui -- --disable-headless-test