Skip to content

Commit b68e367

Browse files
CI: Publish HTML report of tests as an artifact
1 parent 565c8e9 commit b68e367

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ant.yml

+5
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ jobs:
2525
- name: Run tests
2626
working-directory: ./app
2727
run: xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" ant test
28+
- name: Publish results
29+
uses: actions/upload-artifact@v1
30+
with:
31+
name: test-result-details
32+
path: app/test-bin/results/html/junit-noframes.html
2833
- name: Cleanup xvfb
2934
uses: bcomnes/cleanup-xvfb@v1

app/build.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@
160160
<fileset dir="${test.reportdir}">
161161
<include name="TEST-*.xml" />
162162
</fileset>
163-
<report todir="${test.htmldir}" />
163+
<!-- Create a browsable frame-based HTML -->
164+
<report format="frames" todir="${test.htmldir}" />
165+
<!-- Also create a single-page version, to use as CI test result -->
166+
<report format="noframes" todir="${test.htmldir}" />
164167
</junitreport>
165168

166169
<!-- Make these paths relative to user.dir, which is the current directory when invoking ant (so the resulting paths are relative to the environment of the user. -->

0 commit comments

Comments
 (0)