generated from Trianta/cpp-unity-template
Removed Unity testing
This commit is contained in:
parent
be7ef06a2d
commit
2eef3d36f4
@ -10,7 +10,3 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
|||||||
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
|
||||||
add_subdirectory(test)
|
|
||||||
endif()
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
find_package(unity REQUIRED)
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/src)
|
|
||||||
add_executable(testing
|
|
||||||
test.cpp
|
|
||||||
)
|
|
||||||
set_target_properties(testing PROPERTIES LINKER_LANGUAGE CXX)
|
|
||||||
target_link_libraries(testing unity)
|
|
@ -1,21 +0,0 @@
|
|||||||
#include <unity/unity.h>
|
|
||||||
#include <unity/unity_internals.h>
|
|
||||||
|
|
||||||
void setUp() { ; }
|
|
||||||
void tearDown() { ; }
|
|
||||||
|
|
||||||
int Math(void) {
|
|
||||||
return 2+2;
|
|
||||||
}
|
|
||||||
|
|
||||||
void test_Math(void) {
|
|
||||||
TEST_ASSERT_EQUAL_INT(4, Math());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int main(void) {
|
|
||||||
UNITY_BEGIN();
|
|
||||||
RUN_TEST(test_Math);
|
|
||||||
return UNITY_END();
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user