Skip to content

Commit 3717c0b

Browse files
committed
Add test report to docker tests
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
1 parent 63b1566 commit 3717c0b

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,29 @@ 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 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 test_results/ddsrouter_test_test_results.xml
155+
156+
- name: Upload test report
157+
uses: eProsima/eProsima-CI/external/upload-artifact@v0
158+
with:
159+
name: test_report_docker_tests
160+
path: test_results
161+
162+
- name: Test Report
163+
uses: eProsima/eProsima-CI/external/test-reporter@v0
164+
if: success() || failure()
165+
with:
166+
name: "Report: Docker Tests"
167+
path: "test_results/*.xml"
168+
working-directory: 'src'
169+
path-replace-backslashes: 'true'
170+
list-tests: 'failed'
171+
list-suites: 'failed'

0 commit comments

Comments
 (0)