Skip to main content

nextest_filtering/
lib.rs

1// Copyright (c) The nextest Contributors
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! Logic for parsing [filtersets](https://nexte.st/docs/filtersets) used by cargo-nextest.
5
6mod compile;
7pub mod errors;
8mod expression;
9mod parsing;
10#[cfg(any(test, feature = "internal-testing"))]
11mod proptest_helpers;
12
13pub use expression::{
14    BinaryQuery, CompiledExpr, EvalContext, Filterset, FiltersetKind, FiltersetLeaf, GroupLookup,
15    KnownGroups, NameMatcher, ParseContext, TestQuery,
16};
17pub use parsing::ParsedExpr;
18
19/// The canonical filterset DSL reference.
20///
21/// This is used by the CLI to render `cargo nextest help filterset`. The
22/// nextest website also renders it via an `<!-- include -->` snippet.
23pub const FILTERSET_REFERENCE_MD: &str = include_str!("../reference.md");