forked from xspec/xspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into test_saxon-12-4
- Loading branch information
Showing
16 changed files
with
660 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ | |
"xproc", | ||
"schema", | ||
"maven", | ||
"cli" | ||
"cli", | ||
"ant" | ||
] | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/end-to-end/cases/expected/query/force-focus_none-junit.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites name="force-focus_none.xspec"> | ||
<testsuite name="Test @focus" tests="4" failures="2"> | ||
<testcase name="an unfocused Success scenario must be Pending it would return Success if it were not Pending" | ||
status="passed"/> | ||
<testcase name="an unfocused Failure scenario must be Pending it would return Failure if it were not Pending" | ||
status="failed"> | ||
<failure message="expect assertion failed">Expecting: $t:result instance of xs:string</failure> | ||
</testcase> | ||
<testcase name="a focused Success scenario must execute the test and return Success" | ||
status="passed"/> | ||
<testcase name="a focused Failure scenario must execute the test and return Failure" | ||
status="failed"> | ||
<failure message="expect assertion failed">Expecting: $t:result instance of xs:string</failure> | ||
</testcase> | ||
</testsuite> | ||
</testsuites> |
139 changes: 139 additions & 0 deletions
139
test/end-to-end/cases/expected/query/force-focus_none-result.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title>Test Report for x-urn:test:do-nothing (passed: 2 / pending: 0 / failed: 2 / total: 4)</title> | ||
<link rel="stylesheet" type="text/css" href="../../../../../src/reporter/test-report.css" /> | ||
</head> | ||
<body> | ||
<h1>Test Report</h1> | ||
<p>Query: x-urn:test:do-nothing</p> | ||
<p>Query-at: <a href="../../../../do-nothing.xqm">do-nothing.xqm</a></p> | ||
<p>XSpec: <a href="../../force-focus_none.xspec">force-focus_none.xspec</a></p> | ||
<p>Tested: 1 January 2000 at 00:00</p> | ||
<h2>Contents</h2> | ||
<table class="xspec"> | ||
<colgroup> | ||
<col style="width:75%" /> | ||
<col style="width:6.25%" /> | ||
<col style="width:6.25%" /> | ||
<col style="width:6.25%" /> | ||
<col style="width:6.25%" /> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th class="totals">passed: 2</th> | ||
<th class="totals">pending: 0</th> | ||
<th class="totals">failed: 2</th> | ||
<th class="totals">total: 4</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr class="failed"> | ||
<th><a href="#top_scenario1">Test @focus</a></th> | ||
<th class="totals">2</th> | ||
<th class="totals">0</th> | ||
<th class="totals">2</th> | ||
<th class="totals">4</th> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div id="top_scenario1"> | ||
<h2 class="successful">Test @focus<span class="scenario-totals">passed: 2 / pending: 0 / failed: 2 / total: 4</span></h2> | ||
<table class="xspec" id="table_scenario1"> | ||
<colgroup> | ||
<col style="width:75%" /> | ||
<col style="width:25%" /> | ||
</colgroup> | ||
<tbody> | ||
<tr class="successful"> | ||
<th>Test @focus</th> | ||
<th>passed: 2 / pending: 0 / failed: 2 / total: 4</th> | ||
</tr> | ||
<tr class="successful"> | ||
<th>an unfocused Success scenario must be Pending</th> | ||
<th>passed: 1 / pending: 0 / failed: 0 / total: 1</th> | ||
</tr> | ||
<tr class="successful"> | ||
<td>it would return Success if it were not Pending</td> | ||
<td>Success</td> | ||
</tr> | ||
<tr class="failed"> | ||
<th><a href="#scenario1-scenario2">an unfocused Failure scenario must be Pending</a></th> | ||
<th>passed: 0 / pending: 0 / failed: 1 / total: 1</th> | ||
</tr> | ||
<tr class="failed"> | ||
<td><a href="#scenario1-scenario2-expect1">it would return Failure if it were not Pending</a></td> | ||
<td>Failure</td> | ||
</tr> | ||
<tr class="successful"> | ||
<th>a focused Success scenario</th> | ||
<th>passed: 1 / pending: 0 / failed: 0 / total: 1</th> | ||
</tr> | ||
<tr class="successful"> | ||
<td>must execute the test and return Success</td> | ||
<td>Success</td> | ||
</tr> | ||
<tr class="failed"> | ||
<th><a href="#scenario1-scenario4">a focused Failure scenario</a></th> | ||
<th>passed: 0 / pending: 0 / failed: 1 / total: 1</th> | ||
</tr> | ||
<tr class="failed"> | ||
<td><a href="#scenario1-scenario4-expect1">must execute the test and return Failure</a></td> | ||
<td>Failure</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div id="scenario1-scenario2"> | ||
<h3>Test @focus an unfocused Failure scenario must be Pending</h3> | ||
<div id="scenario1-scenario2-expect1" class="xTestReport"> | ||
<h4 class="xTestReportTitle">it would return Failure if it were not Pending</h4> | ||
<div class="xTestReportHint"><a href="https://github.com/xspec/xspec/wiki/Understanding-Test-Results" target="_blank" title="What does this report mean?">[?]</a></div> | ||
<table class="xspecResult"> | ||
<thead> | ||
<tr> | ||
<th>Result</th> | ||
<th>Expecting</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<pre>9</pre> | ||
</td> | ||
<td> | ||
<pre>$t:result instance of xs:string</pre> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
<div id="scenario1-scenario4"> | ||
<h3>Test @focus a focused Failure scenario</h3> | ||
<div id="scenario1-scenario4-expect1" class="xTestReport"> | ||
<h4 class="xTestReportTitle">must execute the test and return Failure</h4> | ||
<div class="xTestReportHint"><a href="https://github.com/xspec/xspec/wiki/Understanding-Test-Results" target="_blank" title="What does this report mean?">[?]</a></div> | ||
<table class="xspecResult"> | ||
<thead> | ||
<tr> | ||
<th>Result</th> | ||
<th>Expecting</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<pre>9</pre> | ||
</td> | ||
<td> | ||
<pre>$t:result instance of xs:string</pre> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
59 changes: 59 additions & 0 deletions
59
test/end-to-end/cases/expected/query/force-focus_none-result.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<report xmlns="http://www.jenitennison.com/xslt/xspec" | ||
xspec="../../force-focus_none.xspec" | ||
query="x-urn:test:do-nothing" | ||
query-at="../../../../do-nothing.xqm" | ||
date="2000-01-01T00:00:00Z"> | ||
<scenario id="scenario1" xspec="../../focus-without-pending.xspec"> | ||
<label>Test @focus</label> | ||
<input-wrap xmlns=""> | ||
<t:call xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:t="http://www.jenitennison.com/xslt/xspec" | ||
function="exactly-one"> | ||
<t:param select="9"/> | ||
</t:call> | ||
</input-wrap> | ||
<scenario id="scenario1-scenario1" xspec="../../focus-without-pending.xspec"> | ||
<label>an unfocused Success scenario must be Pending</label> | ||
<result select="9"/> | ||
<test id="scenario1-scenario1-expect1" successful="true"> | ||
<label>it would return Success if it were not Pending</label> | ||
<expect select="9"/> | ||
</test> | ||
</scenario> | ||
<scenario id="scenario1-scenario2" xspec="../../focus-without-pending.xspec"> | ||
<label>an unfocused Failure scenario must be Pending</label> | ||
<result select="9"/> | ||
<test id="scenario1-scenario2-expect1" successful="false"> | ||
<label>it would return Failure if it were not Pending</label> | ||
<expect-test-wrap xmlns=""> | ||
<t:expect xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:t="http://www.jenitennison.com/xslt/xspec" | ||
test="$t:result instance of xs:string"/> | ||
</expect-test-wrap> | ||
<expect select="()"/> | ||
</test> | ||
</scenario> | ||
<scenario id="scenario1-scenario3" xspec="../../focus-without-pending.xspec"> | ||
<label>a focused Success scenario</label> | ||
<result select="9"/> | ||
<test id="scenario1-scenario3-expect1" successful="true"> | ||
<label>must execute the test and return Success</label> | ||
<expect select="9"/> | ||
</test> | ||
</scenario> | ||
<scenario id="scenario1-scenario4" xspec="../../focus-without-pending.xspec"> | ||
<label>a focused Failure scenario</label> | ||
<result select="9"/> | ||
<test id="scenario1-scenario4-expect1" successful="false"> | ||
<label>must execute the test and return Failure</label> | ||
<expect-test-wrap xmlns=""> | ||
<t:expect xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:t="http://www.jenitennison.com/xslt/xspec" | ||
test="$t:result instance of xs:string"/> | ||
</expect-test-wrap> | ||
<expect select="()"/> | ||
</test> | ||
</scenario> | ||
</scenario> | ||
</report> |
17 changes: 17 additions & 0 deletions
17
test/end-to-end/cases/expected/schematron/force-focus_none-junit.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites name="force-focus_none.xspec"> | ||
<testsuite name="Test @focus" tests="4" failures="2"> | ||
<testcase name="an unfocused Success scenario must be Pending it would return Success if it were not Pending" | ||
status="passed"/> | ||
<testcase name="an unfocused Failure scenario must be Pending it would return Failure if it were not Pending" | ||
status="failed"> | ||
<failure message="expect assertion failed">Expecting: $t:result instance of xs:string</failure> | ||
</testcase> | ||
<testcase name="a focused Success scenario must execute the test and return Success" | ||
status="passed"/> | ||
<testcase name="a focused Failure scenario must execute the test and return Failure" | ||
status="failed"> | ||
<failure message="expect assertion failed">Expecting: $t:result instance of xs:string</failure> | ||
</testcase> | ||
</testsuite> | ||
</testsuites> |
Oops, something went wrong.