Expected failures are now treated as skipped tests
Before they were being treated as "passing" tests. Since this might cause them to be silently ignored, classifying them under "skipped" will ensure they won't go unnoticed. Expected failures != skipped. The former will always be executed.
This commit is contained in:
@@ -30,7 +30,7 @@ if (open my $fh, '<', 'all.log')
|
||||
for sort {$skipped{$b} <=> $skipped{$a}} keys %skipped;
|
||||
|
||||
print "\n";
|
||||
print "Expected failures\n";
|
||||
print "Expected failures (part of skipped)\n";
|
||||
printf "%-32s %4d\n", $_, $expected{$_}
|
||||
for sort {$expected{$b} <=> $expected{$a}} keys %expected;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ class TAPTestResult(unittest.result.TestResult):
|
||||
)
|
||||
elif status == "EXPECTED_FAILURE":
|
||||
self.stream.writeln("{0} {1} - {2}".format(
|
||||
color("ok", "green"), self.testsRun, desc)
|
||||
color("skip", "yellow"), self.testsRun, desc)
|
||||
)
|
||||
else:
|
||||
self.stream.writeln("{0} {1} - {2}".format(
|
||||
|
||||
Reference in New Issue
Block a user