Back to Blog
![]() offline Run without accessing the network no-run Compile tests but don't run coverage no-fail-fast Run all tests regardless of failure no-default-features Do not include default features lib Test only this package's library unit tests ignore-tests Ignore lines of test functions when collecting coverage ![]() ignore-panics Ignore panic macros in tests ignore-config Ignore any project config files ![]() frozen Do not update Cargo.lock or any caches Tarpaulin will still take signals it is expecting. f, -forward Forwards unexpected signals to test. force-clean Adds a clean stage to work around cargo bugs that may affect coverage results follow-exec Follow executed processes capturing coverage information if they're part of your dump-traces Log tracing events and save to a json file. doc Test only this library's documentation debug Show debug output - this is used for diagnosing issues with tarpaulin count Counts the number of hits during coverage b, -branch Branch coverage: NOT IMPLEMENTED avoid-cfg-tarpaulin Remove -cfg=tarpaulin from the RUSTFLAG all-features Build all available features Tool to analyse test coverage of cargo projectsĬargo tarpaulin See below for how to do that.īelow is the help-text for a thorough explanation of the flags and features available: It can also be run in Docker, which is useful for when you don't use Linux but want to run it locally, e.g. It is a goal when greater stability is reached to add wider system support, however this is sufficient to run Tarpaulin on popular CI tools like Travis. This is because instrumenting breakpoints into executables and tracing their execution requires processor and OS specific code. Tarpaulin only supports x86_64 processors running Linux. Also, check out our roadmap for planned features. A lot of work has been done to get it working on a wide range of projects, but often unique combinations of packages and build features can cause issues so please report anything you find that's wrong. Currently, tarpaulin provides working line coverage and while fairly reliable may still contain minor inaccuracies in the results. ![]() Tarpaulin is a code coverage reporting tool for the Cargo build system, named for a waterproof cloth used to cover cargo on a ship. ![]()
0 Comments
Read More
Leave a Reply. |