File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ else()
219
219
DYNAMIC_CPP_STEPS_EXE=${CMAKE_BINARY_DIR} /${CMAKE_CFG_INTDIR} /e2e-steps
220
220
DYNAMIC_CPP_STEPS_OBJ=${CUKE_DYNAMIC_CPP_STEPS_OBJ}
221
221
COMPILE_DYNAMIC_CPP_STEPS=${CUKE_COMPILE_DYNAMIC_CPP_STEPS}
222
+ --format=junit "--out=${CMAKE_BINARY_DIR} /features"
222
223
CUCUMBER_RUBY=${CUCUMBER_RUBY}
223
224
${ARGN}
224
225
${CUKE_FEATURES_DIR}
Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ test_script:
56
56
- cmd : cmake --build build --target test
57
57
- cmd : cmake --build build --target features
58
58
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
+
59
62
notifications :
60
63
- provider : Email
61
64
to :
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ if(GMOCK_FOUND)
13
13
add_executable (${TEST_NAME} ${TEST_FILE} .cpp)
14
14
target_link_libraries (${TEST_NAME} cucumber-cpp-nomain ${CUKE_EXTRA_LIBRARIES} ${ARGN} ${CUKE_GMOCK_LIBRARIES} )
15
15
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" )
18
19
endfunction ()
19
20
20
21
# 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