Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

If a test fails because of an error, don't report that as a success!

  • Loading branch information...
commit ad5780b82d32d9bdd6a2e84e743c5c4e8b45c5b0 1 parent 00db4c3
@Infiniverse Infiniverse authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/org/exist/xquery/lib/xqsuite/xqsuite.xql
View
6 src/org/exist/xquery/lib/xqsuite/xqsuite.xql
@@ -704,15 +704,17 @@ declare function test:to-html($output as element(testsuites)) {
};
declare %private function test:print-testcase($case as element(testcase)) {
- <tr class="{if ($case/failure) then 'fail' else 'pass'}">
+ <tr class="{if ($case/failure or $case/error) then 'fail' else 'pass'}">
<td>{$case/@name/string()}</td>
<td>
{
if ($case/failure) then
($case/failure/@message/string(), " Expected: ", $case/failure/text())
+ else if ($case/error) then
+ ($case/error/@type/string(), " ", $case/error/@message/string())
else
"OK"
}
</td>
</tr>
-};
+};
Please sign in to comment.
Something went wrong with that request. Please try again.