use-test-report 0.1.0

Lightweight report summary primitives for RustUse testing vocabulary.
Documentation
  • Coverage
  • 18.18%
    2 out of 11 items documented1 out of 5 items with examples
  • Size
  • Source code size: 5.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 322.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-test
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-test-report

Lightweight report summary primitives for RustUse testing vocabulary.

Experimental

use-test-report is experimental while use-test remains below 0.3.0.

Example

use use_test_report::TestReport;

let report = TestReport {
    suite_name: Some("core".to_string()),
    total: 4,
    passed: 3,
    failed: 1,
    skipped: 0,
    errored: 0,
};

assert_eq!(report.success_rate(), Some(0.75));
assert!(!report.is_success());

Scope

  • Suite-level summary counts.
  • Success-rate and aggregate success helpers.

Non-goals

  • Report rendering, JUnit XML, coverage reports, CI publishing, or persistent storage.

License

Licensed under either Apache-2.0 or MIT.