Skip to content

Commit f16a631

Browse files
authored
Add %test:stats annotation
1 parent f257ceb commit f16a631

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

data/xqsuite.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@ function fd:simple-date($date as xs:date) as xs:string {
202202
of tests that are present but not yet executed.</para>
203203
</listitem>
204204
</varlistentry>
205+
<varlistentry>
206+
<term>%test:stats</term>
207+
<listitem>
208+
<para>Collects statistics using <code>system:trace()</code> and prepends them as an element (<code>&lt;stats:calls xmlns:stats="http://exist-db.org/xquery/profiling"&gt;</code>) to the returned sequence
209+
of the test function.</para>
210+
</listitem>
211+
</varlistentry>
205212
<varlistentry>
206213
<term>%test:setUp, %test:tearDown</term>
207214
<listitem>
@@ -300,4 +307,4 @@ test:suite(
300307
&lt;/testsuites&gt;</programlisting>
301308
</section>
302309
</chapter>
303-
</book>
310+
</book>

0 commit comments

Comments
 (0)