@@ -107,8 +107,8 @@ declare function local:main() {
107107 <tr>
108108 <th><input id = "checkall" type = "checkbox" checked = "checked" />Run</th>
109109 <th>Test Suite</th>
110- <th>Total Test Count </th>
111- <th>Tests Run </th>
110+ <th>Test Cases </th>
111+ <th>Assertions </th>
112112 <th>Passed</th>
113113 <th>Failed</th>
114114 </tr>
@@ -128,7 +128,14 @@ declare function local:main() {
128128 {fn:data ($suite/@path)} <span class = "spinner" ><img src = "img/spinner.gif" /><b>Running...</b></span>
129129 </div>
130130 </td>
131- <td>{fn:count ($suite/test:tests/test:test)}</td>
131+ <td>{
132+ fn:count (
133+ for $test in $suite/test:tests/test:test
134+ let $path := $test/@path/fn:string ()
135+ where fn:not (test:is-either-setup-or-teardown-module ($path))
136+ return $test
137+ )
138+ }</td>
132139 <td class = "tests-run" >-</td>
133140 <td class = "passed" >-</td>
134141 <td class = "right failed" >-</td>
@@ -139,15 +146,16 @@ declare function local:main() {
139146 <div class = "wrapper" ><input class = "check-all-tests" type = "checkbox" checked = "checked" />Run All Tests</div>
140147 <ul class = "tests" >
141148 {
142- for $test in ($suite/test:tests/test:test)
149+ for $test in $suite/test:tests/test:test
150+ let $path := $test/@path/fn:string ()
143151 return
144- <li class = "tests {if (fn:matches ($test/@ path, '(S|s)etup\.' )) then 'setup-module-hidden' else if (fn:matches ($test/@ path, '(T|t)eardown\.' )) then 'teardown-module-hidden' else ()} " >
152+ <li class = "tests {if (test:is-either-setup-module ($ path)) then 'setup-module-hidden' else if (test:is-either-teardown-module ($ path)) then 'teardown-module-hidden' else ()} " >
145153 {
146- if (fn:matches ($test/@ path, "^ suite((-s|S)etup|(-t|T)eardown\.)" )) then
147- <input type = "hidden" value = "{fn:data ($test/@ path) } " />
154+ if (test:is-suite-setup-module ($ path) or test:is- suite-teardown-module ($path )) then
155+ <input type = "hidden" value = "{$ path} " />
148156 else
149- <input class = "test-cb" type = "checkbox" checked = "checked" value = "{fn:data ($test/@ path) } " />,
150- fn:string ($test/@ path)
157+ <input class = "test-cb" type = "checkbox" checked = "checked" value = "{$ path} " />,
158+ $ path
151159 }<span class = "outcome" ></span>
152160 </li>
153161 }
0 commit comments