Skip to content

Commit 9e940a8

Browse files
authored
Add test report to docker tests (#519)
* Add test report to docker tests Signed-off-by: Raul Sanchez-Mateos <[email protected]> * Fix test reporter for docker tests Signed-off-by: Raul Sanchez-Mateos <[email protected]> --------- Signed-off-by: Raul Sanchez-Mateos <[email protected]>
1 parent 63b1566 commit 9e940a8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/docker-reusable-workflow.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,23 @@ jobs:
143143
export DDSROUTER_COMPOSE_TEST_DOCKER_IMAGE=${{ env.DDSROUTER_COMPOSE_TEST_DOCKER_IMAGE }}
144144
export DDSROUTER_COMPOSE_TEST_ROS2_DOCKER_IMAGE=${{ env.DDSROUTER_COMPOSE_TEST_ROS2_DOCKER_IMAGE }}
145145
source install/setup.bash
146+
mkdir ${{ github.workspace }}/test_results
146147
colcon test \
147148
--packages-select ddsrouter_test \
148149
--event-handlers console_direct+ \
149150
--return-code-on-test-failure \
150151
--ctest-args \
151152
--label-exclude xfail \
152-
--timeout 240
153+
--timeout 240 \
154+
--output-junit ${{ github.workspace }}/test_results/ddsrouter_test_test_results.xml
155+
156+
- name: Test Report
157+
uses: eProsima/eProsima-CI/external/test-reporter@v0
158+
if: success() || failure()
159+
with:
160+
name: "Report: Docker Tests"
161+
path: "${{ github.workspace }}/test_results/*.xml"
162+
working-directory: 'src'
163+
path-replace-backslashes: 'true'
164+
list-tests: 'failed'
165+
list-suites: 'failed'

0 commit comments

Comments
 (0)