Skip to content

Commit cd88d54

Browse files
committed
Default to failure in JUnit status if status is unknown
1 parent 4ca333d commit cd88d54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/formatters/junit_xml.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ struct Result {
3838
case Status::Skipped:
3939
return "skipped";
4040
}
41+
return "failure"; // Default to failure if status is unknown
4142
}
4243

4344
[[nodiscard]] std::string to_xml() const {

0 commit comments

Comments
 (0)