File tree 3 files changed +8
-0
lines changed
src/tools/rust-analyzer/crates/rust-analyzer/src
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1884,6 +1884,7 @@ impl Config {
1884
1884
CargoFeaturesDef :: Selected ( it) => it,
1885
1885
} ,
1886
1886
extra_args : self . extra_args ( ) . clone ( ) ,
1887
+ extra_test_bin_args : self . runnables_extraTestBinaryArgs ( ) . clone ( ) ,
1887
1888
extra_env : self . extra_env ( ) . clone ( ) ,
1888
1889
target_dir : self . target_dir_from_config ( ) ,
1889
1890
}
@@ -1934,6 +1935,7 @@ impl Config {
1934
1935
CargoFeaturesDef :: Selected ( it) => it,
1935
1936
} ,
1936
1937
extra_args : self . check_extra_args ( ) ,
1938
+ extra_test_bin_args : self . runnables_extraTestBinaryArgs ( ) . clone ( ) ,
1937
1939
extra_env : self . check_extra_env ( ) ,
1938
1940
target_dir : self . target_dir_from_config ( ) ,
1939
1941
} ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ pub(crate) struct CargoOptions {
30
30
pub ( crate ) all_features : bool ,
31
31
pub ( crate ) features : Vec < String > ,
32
32
pub ( crate ) extra_args : Vec < String > ,
33
+ pub ( crate ) extra_test_bin_args : Vec < String > ,
33
34
pub ( crate ) extra_env : FxHashMap < String , String > ,
34
35
pub ( crate ) target_dir : Option < Utf8PathBuf > ,
35
36
}
Original file line number Diff line number Diff line change @@ -102,6 +102,11 @@ impl CargoTestHandle {
102
102
}
103
103
cmd. args ( [ "-Z" , "unstable-options" ] ) ;
104
104
cmd. arg ( "--format=json" ) ;
105
+
106
+ for extra_arg in options. extra_test_bin_args {
107
+ cmd. arg ( extra_arg) ;
108
+ }
109
+
105
110
Ok ( Self { _handle : CommandHandle :: spawn ( cmd, sender) ? } )
106
111
}
107
112
}
You can’t perform that action at this time.
0 commit comments