mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
53899296b1
commit
1302e69d51
2 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue