use-pytest 0.0.1

pytest metadata primitives for RustUse
Documentation
  • Coverage
  • 44.44%
    20 out of 45 items documented1 out of 23 items with examples
  • Size
  • Source code size: 14.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.08 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-python
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-pytest

pytest testing metadata primitives for RustUse.

Experimental

use-pytest is experimental while use-python remains below 0.3.0.

Example

use use_pytest::{PytestMarkerName, PytestNodeId, PytestOutcome};

let marker = PytestMarkerName::new("slow")?;
let node_id = PytestNodeId::new("tests/test_app.py::test_smoke")?;

assert_eq!(marker.as_str(), "slow");
assert!(node_id.has_scope_separator());
assert_eq!(PytestOutcome::Passed.as_str(), "passed");
# Ok::<(), use_pytest::PytestNameError>(())

Scope

  • Test, marker, fixture, and node ID metadata.
  • Config file, outcome, fixture scope, and file-kind labels.
  • Light ASCII identifier validation where appropriate.

Non-goals

  • Executing pytest.
  • Parsing Python test files.
  • Collecting tests or interpreting pytest plugins.

License

Licensed under either Apache-2.0 or MIT.