File tree 1 file changed +5
-5
lines changed
crates/conformance-tests/src
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,21 @@ impl Config {
33
33
}
34
34
}
35
35
36
- /// Run the conformance tests
36
+ /// Run the conformance tests and return the results.
37
37
pub fn run_tests (
38
38
config : Config ,
39
39
run : impl Fn ( Test ) -> anyhow:: Result < ( ) > + Send + Clone + ' static ,
40
- ) -> anyhow:: Result < ( ) > {
40
+ ) -> anyhow:: Result < libtest_mimic :: Conclusion > {
41
41
let tests_dir = download_tests ( & config. version ) ?;
42
42
run_tests_from ( tests_dir, config, run)
43
43
}
44
44
45
- /// Run the conformance tests located in the given directory
45
+ /// Run the conformance tests located in the given directory and returns the Conclusion
46
46
pub fn run_tests_from (
47
47
tests_dir : impl AsRef < Path > ,
48
48
config : Config ,
49
49
run : impl Fn ( Test ) -> anyhow:: Result < ( ) > + Send + Clone + ' static ,
50
- ) -> anyhow:: Result < ( ) > {
50
+ ) -> anyhow:: Result < libtest_mimic :: Conclusion > {
51
51
let trials = tests_iter ( tests_dir) ?
52
52
. map ( |test| {
53
53
let run = run. clone ( ) ;
@@ -56,7 +56,7 @@ pub fn run_tests_from(
56
56
. with_ignored_flag ( config. ignored . contains ( & name) )
57
57
} )
58
58
. collect ( ) ;
59
- libtest_mimic:: run ( & Default :: default ( ) , trials) . exit ( ) ;
59
+ Ok ( libtest_mimic:: run ( & Default :: default ( ) , trials) )
60
60
}
61
61
62
62
/// Download the conformance tests and return the path to the directory where they are written to
You can’t perform that action at this time.
0 commit comments