Engine development
Engine development
Testing
Run tests
To run the tests use the following command:
cargo testThis will run all tests in the engine. But sometime you may wish to skip some tests, specially the rendering ones. To do this you can use the --skip flag. For example, to skip the rendering tests you can run:
cargo test -- --skip render --skip graphicsCode coverage
To generate test code coverage we recommend using the cargo-llvm-cov crate. To install it run:
cargo install cargo-llvm-covThen, to run the tests and generate a coverage report file run:
cargo llvm-cov --lcov --output-path coverage/lcov.infoTo see the coverage report inline in VSCode you can use the markis.code-coverage extension.