#nextest #test-runner

nextest-metadata

Structured access to nextest machine-readable output

11 releases (5 breaking)

Uses new Rust 2021

0.6.0 Aug 17, 2022
0.5.0 Jul 14, 2022
0.4.4 Jul 13, 2022
0.3.0 Mar 22, 2022

#81 in Testing

Download history 5636/week @ 2022-06-06 10955/week @ 2022-06-13 6505/week @ 2022-06-20 9138/week @ 2022-06-27 7003/week @ 2022-07-04 6585/week @ 2022-07-11 6523/week @ 2022-07-18 6884/week @ 2022-07-25 7497/week @ 2022-08-01 7724/week @ 2022-08-08 8991/week @ 2022-08-15 11654/week @ 2022-08-22 8936/week @ 2022-08-29 8064/week @ 2022-09-05 8261/week @ 2022-09-12 8383/week @ 2022-09-19

34,004 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

26KB
368 lines

nextest-metadata

nextest-metadata on crates.io Documentation (latest release) Documentation (main) Changelog License License

This crate contains deserializers for machine-readable output generated by cargo-nextest.

Implemented so far:

  • ✅ Listing tests with TestListSummary
  • ✅ Semantic exit codes with NextestExitCode

Examples

Get the list of tests in the repository:

// This example requires `cargo nextest` to be installed.

use nextest_metadata::ListCommand;

let command = ListCommand::new();
let test_list = command.exec().unwrap();

// The result is a TestListSummary.
println!("{:?}", test_list);

Minimum supported Rust version (MSRV)

The minimum supported Rust version is Rust 1.59.

While this crate is a pre-release (0.x.x) it may have its MSRV bumped in a patch release. Once a crate has reached 1.x, any MSRV bump will be accompanied with a new minor version.

Minimum supported cargo-nextest version

The "minimum supported cargo-nextest version" is cargo-nextest 0.9.15.

For more about nextest-metadata's stability policy, see the Stability page on the nextest site.

Contributing

See the CONTRIBUTING file for how to help out.

License

This project is available under the terms of either the Apache 2.0 license or the MIT license.

Dependencies

~0.7–1.4MB
~32K SLoC