docs/ui.md: which of the GPUI tests need a display
The Tests bullet said the tests need no display and then named tests/launch_failure.rs, one case of which starts the binary on the test display of VOELIN_X11_TEST_DISPLAY (skipped without it, like the X11 tests of voelin-media and voelin-platform); the other case needs no display at all. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d3fa8d85f0
commit
7cabc2c13d
1 file changed
+4
-2
+4
-2
@@ -1000,7 +1000,7 @@ crates/voelin-gpui/
|
|||||||
the version, the voice connections up, the engine events handled, the seconds
|
the version, the voice connections up, the engine events handled, the seconds
|
||||||
up; each part moves by one of the loops. The window's start shows no store:
|
up; each part moves by one of the loops. The window's start shows no store:
|
||||||
the shell slice opens it with the settings and the bookmarks.
|
the shell slice opens it with the settings and the bookmarks.
|
||||||
- **Tests** need no display (GPUI's test platform, `#[gpui::test]`, with
|
- **Tests**: the unit tests need no display (GPUI's test platform, `#[gpui::test]`, with
|
||||||
`gpui-pre`'s `test-support` as a dev-dependency beside gpui-kit's own pin: its
|
`gpui-pre`'s `test-support` as a dev-dependency beside gpui-kit's own pin: its
|
||||||
`test-support` feature would make Cargo lock the unused `gpui-fast` backend and
|
`test-support` feature would make Cargo lock the unused `gpui-fast` backend and
|
||||||
pin taffy 0.15.0): an injected engine event, a real engine's event, the tick
|
pin taffy 0.15.0): an injected engine event, a real engine's event, the tick
|
||||||
@@ -1008,7 +1008,9 @@ crates/voelin-gpui/
|
|||||||
gpui-component, follows the window's appearance and the text size; the
|
gpui-component, follows the window's appearance and the text size; the
|
||||||
Slint file's tokens equal the Rust ones (below); the icons and fonts load.
|
Slint file's tokens equal the Rust ones (below); the icons and fonts load.
|
||||||
`tests/launch_failure.rs` starts the built binary where its window cannot
|
`tests/launch_failure.rs` starts the built binary where its window cannot
|
||||||
open (below). `cargo test -p voelin-gpui`.
|
open (below): one of its two cases needs the test display of
|
||||||
|
`VOELIN_X11_TEST_DISPLAY` and is skipped without it, as the X11 tests of
|
||||||
|
the other crates are. `cargo test -p voelin-gpui`.
|
||||||
|
|
||||||
### Running it
|
### Running it
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user