Put test 'args' at the end of the test command
For test commands, there can be arguments passed to the test binary like `-- --ignored` or `-- --test-threads=1`. For these cases to work properly, the `args` parameter needs to be added to the end of the 'test' command.
This commit is contained in:
committed by
Dave Rolsky
parent
294bb6a7fe
commit
9e709706e7
@@ -8,4 +8,10 @@ mod test {
|
||||
fn test_something() {
|
||||
assert_eq!(1, 1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_something_ignored() {
|
||||
assert_eq!(2, 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user