File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 0.2.5] - 2024-04-08
4
+
5
+ - Exit main via ` ExitCode ` rather than ` std::process::exit() ` . This appears to fix coverage on
6
+ Windows.
7
+
3
8
## [ 0.2.4] - 2024-04-08
4
9
5
10
This is a periodic maintenance release.
@@ -70,6 +75,7 @@ There are no functional changes in this release.
70
75
71
76
(Version 0.1.0 was yanked because of a metadata issue.)
72
77
78
+ [ 0.2.5 ] : https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.5
73
79
[ 0.2.4 ] : https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.4
74
80
[ 0.2.3 ] : https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.3
75
81
[ 0.2.2 ] : https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.2
Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ pub fn runner(requirements: &[Requirements]) -> ExitCode {
15
15
tests. sort_unstable_by ( |a, b| a. name ( ) . cmp ( b. name ( ) ) ) ;
16
16
17
17
let conclusion = libtest_mimic:: run ( & args, tests) ;
18
+
19
+ // This used to use `Conclusion::exit`, but that exits the process via `std::process::exit` as
20
+ // of libtest-mimic 0.7.0. This breaks some things, e.g. llvm-cov on Windows.
21
+ // https://github.com/nextest-rs/datatest-stable/issues/20
22
+ //
23
+ // Use `std::process::ExitCode` instead, and return it in main.
24
+
18
25
if conclusion. has_failed ( ) {
19
26
// libtest-mimic uses exit code 101 for test failures -- retain the same behavior.
20
27
101 . into ( )
You can’t perform that action at this time.
0 commit comments