Skip to content

Commit c3096be

Browse files
committed
Update to tester 0.9
This is a breaking change and allows for setting multiple filters at once.
1 parent 32c5125 commit c3096be

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ serde = "1.0"
2525
serde_json = "1.0"
2626
serde_derive = "1.0"
2727
rustfix = "0.5"
28-
tester = "0.8"
28+
tester = "0.9"
2929
lazy_static = "1.4"
3030

3131
[target."cfg(unix)".dependencies]

src/common.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ pub struct Config {
148148
/// Run ignored tests
149149
pub run_ignored: bool,
150150

151-
/// Only run tests that match this filter
152-
pub filter: Option<String>,
151+
/// Only run tests that match these filters
152+
pub filters: Vec<String>,
153153

154154
/// Exactly match the filter, rather than a substring
155155
pub filter_exact: bool,
@@ -372,7 +372,7 @@ impl Default for Config {
372372
stage_id: "stage-id".to_owned(),
373373
mode: Mode::RunPass,
374374
run_ignored: false,
375-
filter: None,
375+
filters: vec![],
376376
filter_exact: false,
377377
logfile: None,
378378
runtool: None,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub fn run_tests(config: &Config) {
111111

112112
pub fn test_opts(config: &Config) -> test::TestOpts {
113113
test::TestOpts {
114-
filter: config.filter.clone(),
114+
filters: config.filters.clone(),
115115
filter_exact: config.filter_exact,
116116
exclude_should_panic: false,
117117
force_run_in_process: false,

0 commit comments

Comments
 (0)