Testing
Run tests
To run the tests use the following command:
This 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:
Code coverage
To generate test code coverage we recommend using the cargo-llvm-cov
crate. To install it run:
Then, to run the tests and generate a coverage report file run:
To see the coverage report inline in VSCode you can use the markis.code-coverage
extension.
Last updated