forked from mschwemer/typo3scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJunit.twig
19 lines (17 loc) · 798 Bytes
/
Junit.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="{{ title }}" tests="{{ total }}" errors="{{ total }}" time="{{ executionTime }}">
{% for fileMatches in directoryMatches %}
<testsuite name="{{ fileMatches.getPath|replace({ (basePath): ""}) }}" tests="{{ fileMatches.count }}" errors="{{ fileMatches.count }}">
{% for fileMatch in fileMatches %}
<testcase name="{{ fileMatch.getMessage|escapeDollar }} ({{ fileMatch.getIndicator }} / {{ fileMatch.getType }})">
<failure>
{{ fileMatch.getLine }} {{ fileMatches.getPath|getLineFromFile(fileMatch.getLine)|raw|escapeDollar }}
{% for restFile in fileMatch.getRestFiles %}
- {{ restFile|getChangeTitle }}: {{ restFile|getOnlineDocument }}
{% endfor %}
</failure>
</testcase>
{% endfor %}
</testsuite>
{% endfor %}
</testsuites>