Skip to content

Commit

Permalink
Publish tests results to xml files
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Nov 26, 2023
1 parent 3352323 commit 8f473df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ target_link_directories(test_raft PRIVATE ${CMOCKA_LIBRARY_DIRS})
target_link_libraries(test_raft miniraft ${CMOCKA_LIBRARIES})

add_test(NAME test_raft COMMAND ${CMAKE_BINARY_DIR}/test_raft)
set_tests_properties(test_raft PROPERTIES ENVIRONMENT "CMOCKA_MESSAGE_OUTPUT=xml;CMOCKA_XML_FILE=test_raft.xml")

target_include_directories(test_read_write PRIVATE ${CMOCKA_INCLUDE_DIRS})
target_link_directories(test_read_write PRIVATE ${CMOCKA_LIBRARY_DIRS})
target_link_libraries(test_read_write miniraft ${CMOCKA_LIBRARIES})

add_test(NAME test_read_write COMMAND ${CMAKE_BINARY_DIR}/test_read_write)
set_tests_properties(test_read_write PROPERTIES ENVIRONMENT "CMOCKA_MESSAGE_OUTPUT=xml;CMOCKA_XML_FILE=test_read_write.xml")

0 comments on commit 8f473df

Please sign in to comment.