File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ else()
220220 DYNAMIC_CPP_STEPS_OBJ=${CUKE_DYNAMIC_CPP_STEPS_OBJ}
221221 COMPILE_DYNAMIC_CPP_STEPS=${CUKE_COMPILE_DYNAMIC_CPP_STEPS}
222222 CUCUMBER_RUBY=${CUCUMBER_RUBY}
223+ --format=junit "--out=${CMAKE_BINARY_DIR} /features"
223224 ${ARGN}
224225 ${CUKE_FEATURES_DIR}
225226 DEPENDS cucumber-cpp
Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ test_script:
5656- cmd : cmake --build build --target test
5757- cmd : cmake --build build --target features
5858
59+ after_test :
60+ - cmd : for /r %%v in (TEST-*.xml) do curl -s -F "file=@%%v;filename=%%~nxv" https://ci.appveyor.com/api/testresults/junit/%APPVEYOR_JOB_ID%
61+
5962notifications :
6063- provider : Email
6164 to :
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ if(GMOCK_FOUND)
1313 add_executable (${TEST_NAME} ${TEST_FILE} .cpp)
1414 target_link_libraries (${TEST_NAME} cucumber-cpp-nomain ${CUKE_EXTRA_LIBRARIES} ${ARGN} ${CUKE_GMOCK_LIBRARIES} )
1515 gtest_add_tests(${TEST_NAME} "" ${TEST_FILE} .cpp)
16- # Run all tests in executable at once too. This ensures that the used fixtures get tested properly too.
17- add_test (NAME ${TEST_NAME} COMMAND ${TEST_NAME} )
16+ # Run all tests in executable at once too. This ensures that the used fixtures get tested
17+ # properly too. Additionally gather the output in jUnit compatible output for CI.
18+ add_test (NAME ${TEST_NAME} COMMAND ${TEST_NAME} "--gtest_output=xml:TEST-${TEST_NAME} .xml" )
1819 endfunction ()
1920
2021 # TODO Compile tests with the least possible code, not with the entire library
You can’t perform that action at this time.
0 commit comments