nextest-metadata

Crates.ionextest-metadata
lib.rsnextest-metadata
version0.12.1
sourcesrc
created_at2022-02-13 23:20:17.921085
updated_at2024-09-05 22:23:51.418097
descriptionStructured access to nextest machine-readable output.
homepage
repositoryhttps://github.com/nextest-rs/nextest
max_upload_size
id531943
size62,444
Nextest Bot (nextest-bot)

documentation

https://docs.rs/nextest-metadata

README

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.73.

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.

Commit count: 2837

cargo fmt