added initial test case (does not compile!)
This commit is contained in:
parent
96113653e7
commit
fee508fb96
3 changed files with 20 additions and 1 deletions
|
@ -17,4 +17,5 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
add_subdirectory(test)
|
8
test/CMakeLists.txt
Normal file
8
test/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
enable_testing()
|
||||||
|
|
||||||
|
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
|
||||||
|
|
||||||
|
set(TEST_SOURCES test_seller.cpp)
|
||||||
|
|
||||||
|
add_executable(testsuite ${TEST_SOURCES})
|
||||||
|
target_link_libraries(testsuite Boost::unit_test_framework)
|
10
test/test_seller.cpp
Normal file
10
test/test_seller.cpp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#include "../src/core/seller.h"
|
||||||
|
|
||||||
|
#define BOOST_TEST_MODULE seller
|
||||||
|
|
||||||
|
#include <boost/test/unit_test.hpp>
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE( initial_test ) {
|
||||||
|
Seller seller{};
|
||||||
|
BOOST_TEST(seller.getUuid().is_nil() == true);
|
||||||
|
}
|
Loading…
Reference in a new issue