Skip to content

Commit 404e7cd

Browse files
authored
Improve unit test printout (#66)
1 parent fd95729 commit 404e7cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/cpp-app/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
run: ./build.sh -r
6565

6666
- name: Run Unit Tests
67-
run: build/bin/app_utests > test-results.md
67+
shell: bash
68+
run: |
69+
set -o pipefail
70+
build/bin/app_utests | tee test-results.md
6871
6972
- name: Generate coverage report
7073
run: cd build && gcovr -r ..
@@ -89,7 +92,9 @@ jobs:
8992
9093
- name: Add test results to job summary
9194
run: |
95+
echo -e "Unit test results: \n\`\`\` " >> $GITHUB_STEP_SUMMARY
9296
cat test-results.md >> $GITHUB_STEP_SUMMARY
97+
echo -e "\n\`\`\`" >> $GITHUB_STEP_SUMMARY
9398
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
9499
95100
- name: Run Linters

0 commit comments

Comments
 (0)