Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve unit test printout #66

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/cpp-app/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ jobs:
run: ./build.sh -r

- name: Run Unit Tests
run: build/bin/app_utests > test-results.md
shell: bash
run: |
set -o pipefail
build/bin/app_utests | tee test-results.md

- name: Generate coverage report
run: cd build && gcovr -r ..
Expand All @@ -89,7 +92,9 @@ jobs:

- name: Add test results to job summary
run: |
echo -e "Unit test results: \n\`\`\` " >> $GITHUB_STEP_SUMMARY
cat test-results.md >> $GITHUB_STEP_SUMMARY
echo -e "\n\`\`\`" >> $GITHUB_STEP_SUMMARY
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

- name: Run Linters
Expand Down