| Crates.io | cargo-ptest |
| lib.rs | cargo-ptest |
| version | 1.3.3 |
| created_at | 2025-10-12 14:32:08.599693+00 |
| updated_at | 2025-11-18 09:51:29.138926+00 |
| description | If installed using cargo install it acts as a command line tool, if used as a package provides methods for running and parsing the output of cargo test. |
| homepage | |
| repository | https://github.com/Ogwen123/cargo-ptest |
| max_upload_size | |
| id | 1879355 |
| size | 49,958 |
Prettify the output of cargo test
If installed using cargo install it acts as a command line tool, if used as a package provides methods for running and parsing the output of cargo test.
Generated by ptest
├ Ignored - tests::tests::should_panic_and_does
├ Failed - tests::tests2::panic - See reason below
├ Pass - tests::tests2::succeed
├ Pass - tests::tests::succeed
├ Failed - tests::tests::should_panic_and_doesnt - See reason below
├ Failed - tests::tests::panic - See reason below
├ Pass - colour_test_green
├ Pass - colour_test_red
├ Ignored - submod::ignore (this is the reason)
├ Ignored - submod::ignore_without_reason
├ Pass - submod::normal_test
├ Pass - submod::panic::should_panic
├ Failed - submod::panic::should_panic_but_didnt - See reason below
├ Failed - submod::panic::panicked - See reason below
├ Pass - submod::panic::should_panic_without_reason
├ Pass - works
├ Pass - from_main_rs
├ Pass - from_integration
├ Ignored - attribute::ignore from tests/integration/src/lib.rs Doc-test
├ Pass - attribute::no_run from tests/integration/src/lib.rs Doc-test
├ Pass - from tests/integration/src/lib.rs Doc-test
├ Pass - normal_doc_mod from tests/integration/src/lib.rs Doc-test
├ Pass - empty_doc_mod::private_mod from tests/integration/src/lib.rs Doc-test
├ Pass - empty_doc_mod from tests/integration/src/lib.rs Doc-test
├ Pass - normal_doc_mod::private_mod::Item from tests/integration/src/lib.rs Doc-test
├ Pass - attribute::should_panic from tests/integration/src/lib.rs Doc-test
├ Pass - normal_doc_mod::Item from tests/integration/src/lib.rs Doc-test
├ Pass - empty_doc_mod::Item from tests/integration/src/lib.rs Doc-test
├ Pass - normal_doc_mod::private_mod from tests/integration/src/lib.rs Doc-test
├ Pass - attribute::edition2018 from tests/integration/src/lib.rs Doc-test
├ Pass - attribute::should_compile_fail from tests/integration/src/lib.rs Doc-test
├ Failed - attribute::should_compile_fail_but_didnt from tests/integration/src/lib.rs - See reason below Doc-test
test result: FAILED. 10 Passed; 5 Failed; 3 Ignored; 0 Measured; 0 Filtered; finished in 0.00s
To pass arguments to cargo test put them after a --. For example,
cargo ptest --no-color -- --tests --no-fail-fast -- --color=always
would run cargo test --tests --no-fail-fast -- --color=always and the --no-color argument would be consumed by ptest.
The following commands are filtered out before running cargo test as they add extra formatting that the parser cannot handle.
--nocapture
-v
--verbose
--color=always
--color=auto
--color=never