zng/tests
Samuel Guerra 92e19bcef1 Reviewed build tests. 2023-04-13 23:40:42 -03:00
..
build Reviewed build tests. 2023-04-13 23:40:42 -03:00
Cargo.toml Added integration test for image request before view-process load. 2022-04-16 16:19:03 -03:00
README.md Reorganized project folders. 2021-12-15 20:43:05 -03:00
command.rs More refactor. 2023-04-12 18:02:22 -03:00
focus.rs More refactor. 2023-04-12 18:34:35 -03:00
image.rs Renamed `clone_move` to `clmv` for shorter macro names, `async_clone_move` is now `async_clmv`. 2023-04-02 13:39:33 -03:00

README.md

Tests

Use this directory for integration, build tests or any test that is not a unit test.

Running

Use cargo do test -t command to run tests in the ./command.rs file.

Use cargo do test -b * to run all build tests.

Use cargo do test -b property/* to run build test cases that match the path relative to ./build/cases.

Adding an Integration Test

To add an integration test, create a file then add it in ./Cargo.toml as a [[bin]].

In ./foo.rs:

use zero_ui::prelude::*;

#[test]
fn foo() {
    assert!(true);
}

Then add in ./Cargo.toml:

[[test]]
name = "foo"
path = "foo.rs"

Then run from the project root using cargo do test -t foo.