Skip to content

Commit 3829b5d

Browse files
committed
PHPLIB-586: Log test results to xunit
1 parent 8b6cd07 commit 3829b5d

File tree

3 files changed

+5
-214
lines changed

3 files changed

+5
-214
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ functions:
162162
display_name: "drivers-dir.tar.gz"
163163

164164
"upload test results":
165-
- command: attach.results
165+
- command: attach.xunit_results
166166
params:
167-
file_location: "${PROJECT_DIRECTORY}/test-results.json"
167+
file: "${PROJECT_DIRECTORY}/test-results.xml"
168168
- command: attach.results
169169
params:
170170
file_location: "${DRIVERS_TOOLS}/results.json"

phpunit.evergreen.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
</testsuite>
2727
</testsuites>
2828

29-
<listeners>
30-
<listener class="MongoDB\Tests\EvergreenLogListener">
31-
<arguments>
32-
<string>test-results.json</string>
33-
</arguments>
34-
</listener>
35-
</listeners>
29+
<logging>
30+
<log type="junit" target="test-results.xml" />
31+
</logging>
3632
</phpunit>

tests/EvergreenLogListener.php

Lines changed: 0 additions & 205 deletions
This file was deleted.

0 commit comments

Comments
 (0)