Unsolved Redirect the output of failing unit tests
-
The root problem is that I cannot see the output of the unit test on gitlab when it fails.
I tried to redirect the output of the test to a file but without success.
If I run the test from a windows cmd, I see all.
If I run the test via Qt, I cannot see the output of the failing unit test.I even tried via a sh.exe
add_test(NAME ${testName} COMMAND "C:\\Program Files\\Git\\bin\\sh.exe" --login -c "${TEST_ENVIRONMENT_DIR}/runTest.sh ${TEST_ENVIRONMENT_DIR}/config.txt ${testName} 1> ${testName}.log 2>&1" WORKING_DIRECTORY "${TEST_ENVIRONMENT_DIR}" )
with
runTest.sh
:#!/bin/bash "C:\\Program Files (x86)\\OpenCppCoverage\\OpenCppCoverage.exe" --export_type=binary --config_file $1 $2
and the output goes to the file but the only thing that is missing is... the output of the failing unit test.
Does anyone have a suggestion on how to solve this problem?
-
Hi and welcome to devnet,
Can you share your .gitlab-ci.yml file ?