Skip to content

Commit 76c913b

Browse files
authored
chore: enable test results and coverage reporting (#27)
1 parent 4408df4 commit 76c913b

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Tests (Jest)
1+
name: Run Tests
22

33
on: push
44

@@ -42,3 +42,9 @@ jobs:
4242

4343
- name: Run Junit
4444
run: gradle test --no-daemon
45+
46+
- name: Upload Reports
47+
uses: mridang/action-test-reporter@v3
48+
with:
49+
results-path: build/reports/tests/test/*.xml
50+
coverage-path: build/reports/jacoco/test/jacoco.xml

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ jacocoTestReport {
9191
reports {
9292
csv {
9393
required = true
94+
destination = file("$buildDir/reports/jacoco/test/jacoco.csv")
9495
}
9596
xml {
9697
required = true
98+
destination = file("$buildDir/reports/jacoco/test/jacoco.xml")
9799
}
98100
html {
99101
required = true
@@ -109,6 +111,7 @@ test {
109111
reports {
110112
junitXml {
111113
required = true
114+
destination = file("$buildDir/reports/tests/test")
112115
}
113116
html {
114117
required = true

0 commit comments

Comments
 (0)