@@ -12,44 +12,59 @@ pub fn run(opts: CoverageOpts) -> Result<()> {
12
12
13
13
cli:: run (
14
14
Command :: new ( "cargo" )
15
- . args ( & [ "test" , "--manifest-path" , "pyo3-build-config/Cargo.toml" ] )
15
+ . args ( & [
16
+ "nextest" ,
17
+ "run" ,
18
+ "--manifest-path" ,
19
+ "pyo3-build-config/Cargo.toml" ,
20
+ ] )
16
21
. envs ( & env) ,
17
22
) ?;
18
23
cli:: run (
19
24
Command :: new ( "cargo" )
20
- . args ( & [ "test" , "--manifest-path" , "pyo3-macros-backend/Cargo.toml" ] )
25
+ . args ( & [
26
+ "nextest" ,
27
+ "run" ,
28
+ "--manifest-path" ,
29
+ "pyo3-macros-backend/Cargo.toml" ,
30
+ ] )
21
31
. envs ( & env) ,
22
32
) ?;
23
33
cli:: run (
24
34
Command :: new ( "cargo" )
25
- . args ( & [ "test" , "--manifest-path" , "pyo3-macros/Cargo.toml" ] )
35
+ . args ( & [
36
+ "nextest" ,
37
+ "run" ,
38
+ "--manifest-path" ,
39
+ "pyo3-macros/Cargo.toml" ,
40
+ ] )
26
41
. envs ( & env) ,
27
42
) ?;
28
43
29
- cli:: run ( Command :: new ( "cargo" ) . arg ( "test " ) . envs ( & env) ) ?;
44
+ cli:: run ( Command :: new ( "cargo" ) . arg ( "nextest" ) . arg ( "run ") . envs ( & env) ) ?;
30
45
cli:: run (
31
46
Command :: new ( "cargo" )
32
- . args ( & [ "test " , "--features" , "abi3" ] )
47
+ . args ( & [ "nextest" , "run ", "--features" , "abi3" ] )
33
48
. envs ( & env) ,
34
49
) ?;
35
50
cli:: run (
36
51
Command :: new ( "cargo" )
37
- . args ( & [ "test " , "--features" , "full" ] )
52
+ . args ( & [ "nextest" , "run ", "--features" , "full" ] )
38
53
. envs ( & env) ,
39
54
) ?;
40
55
cli:: run (
41
56
Command :: new ( "cargo" )
42
- . args ( & [ "test " , "--features" , "abi3 full" ] )
57
+ . args ( & [ "nextest" , "run ", "--features" , "abi3 full" ] )
43
58
. envs ( & env) ,
44
59
) ?;
45
60
46
61
crate :: pytests:: run ( & env) ?;
47
62
48
63
match opts. output_lcov {
49
- Some ( path) => {
50
- cli :: run ( llvm_cov_command ( & [ "--no-run" , "--lcov" , "--output-path" , & path] ) . envs ( & env) ) ?
51
- }
52
- None => cli:: run ( llvm_cov_command ( & [ "--no-run" , "--summary-only" ] ) . envs ( & env) ) ?,
64
+ Some ( path) => cli :: run (
65
+ llvm_cov_command ( & [ "nextest" , " --no-run", "--lcov" , "--output-path" , & path] ) . envs ( & env) ,
66
+ ) ? ,
67
+ None => cli:: run ( llvm_cov_command ( & [ "nextest" , " --no-run", "--summary-only" ] ) . envs ( & env) ) ?,
53
68
}
54
69
55
70
Ok ( ( ) )
0 commit comments