Skip to content

Commit

Permalink
integration test configured
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonymakarewicz committed Jul 16, 2024
1 parent 9b59440 commit 9b6569a
Show file tree
Hide file tree
Showing 21 changed files with 549 additions and 388 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push, pull_request]
on: [push, pull_request] # On what action this workflow will be triggered

jobs:
build:
Expand Down Expand Up @@ -41,10 +41,10 @@ jobs:
# cd build
# make clang-format-check

- name: Run Tests
- name: Run all Tests
run: |
cd build
ctest --output-on-failure
ctest -R AllTests --output-on-failure
# - name: Generate code coverage
# run: |
Expand Down
20 changes: 13 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,25 @@ add_executable(Option_pricer main.cpp src/option.cpp src/payoff.cpp src/market_d
enable_testing()
add_subdirectory(tests)

#[[
# clang-tidy integration
find_program(CLANG_TIDY_EXECUTABLE NAMES clang-tidy)
if(CLANG_TIDY_EXECUTABLE)
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXECUTABLE};-checks=*,-clang-analyzer-alpha.*")
endif()
]]

#[[
# clang-format integration (target to check formatting)
#add_custom_target(clang-format-check
# COMMAND find ${CMAKE_SOURCE_DIR} -name '*.cpp' -o -name '*.h' | xargs clang-format -i
#)
add_custom_target(clang-format-check
COMMAND find ${CMAKE_SOURCE_DIR} -name '*.cpp' -o -name '*.h' | xargs clang-format -i
)
]]

#[[
# Code coverage integration (optional)
#if (CMAKE_BUILD_TYPE STREQUAL "Coverage")
# target_compile_options(Option_pricer PRIVATE --coverage)
# target_link_libraries(Option_pricer PRIVATE --coverage)
#endif()
if (CMAKE_BUILD_TYPE STREQUAL "Coverage")
target_compile_options(Option_pricer PRIVATE --coverage)
target_link_libraries(Option_pricer PRIVATE --coverage)
endif()
]]

This file was deleted.

Binary file modified cmake-build-cmake/.ninja_deps
Binary file not shown.
35 changes: 25 additions & 10 deletions cmake-build-cmake/.ninja_log
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
# ninja log v6
4161 4369 1721108975744067628 tests/integration/Integration_tests edd9ec63126cdae
12 4160 1721108971594987859 tests/integration/CMakeFiles/Integration_tests.dir/__/test_main.cpp.o 44e651753dca70b1
5 1170 1720955557087634788 tests/CMakeFiles/Option_tester.dir/test.cpp.o c8c1f7b23ef8a20f
21 3423 1721059118279173551 CMakeFiles/Option_pricer.dir/src/option.cpp.o 34b12ad3b988bd8a
4348 4470 1721055680561407195 tests/Option_tester c47550924c8b64
7 5051 1721109039201880729 tests/unit/CMakeFiles/Unit_tests.dir/__/__/src/option.cpp.o 10300bd25d5e0479
927 1406 1721062065787680098 tests/Option_tester 84dc17b496be3108
33 3487 1721055676246866783 tests/CMakeFiles/Option_tester.dir/__/src/option.cpp.o 29c2c6cca40a9b65
3682 4173 1721059121940349810 Option_pricer 8068c323144f72c1
6 5324 1721109039201205645 tests/unit/CMakeFiles/Unit_tests.dir/__/__/src/market_data.cpp.o 9a44fc6175ad42bb
21 3427 1721059118279570836 CMakeFiles/Option_pricer.dir/src/payoff.cpp.o f46db1c7e239eff3
6079 6516 1721109045273979129 tests/unit/Unit_tests 3f878dc6b8ec39a1
21 4059 1720973518946469648 tests/CMakeFiles/Option_tester.dir/payoff_tests.cpp.o ff08abb0ecc1a332
12 1082 1721108971595705803 tests/integration/CMakeFiles/Integration_tests.dir/test_integration_option.cpp.o 1a3ce84ec1e71b3c
20 1121 1721059118278176272 CMakeFiles/Option_pricer.dir/main.cpp.o 29be609f97193f5a
32 3485 1721055676245831941 tests/CMakeFiles/Option_tester.dir/__/src/payoff.cpp.o a0e3d0d7499ef87c
33 3657 1721055676246226090 tests/CMakeFiles/Option_tester.dir/__/src/market_data.cpp.o 6b5f9d9d6aae0d70
12 253 1721062064821590577 build.ninja e3219aea2288c68
22 3682 1721059118279905490 CMakeFiles/Option_pricer.dir/src/market_data.cpp.o 61d812ddbf6caa55
35 926 1721062064895852943 tests/CMakeFiles/Option_tester.dir/test_option.cpp.o a32c329a8da0ea2d
35 4372 1720974100669728067 tests/CMakeFiles/Option_tester.dir/market_data_tests.cpp.o 7392fc35dd320ee6
21 3423 1721059118279173551 CMakeFiles/Option_pricer.dir/src/option.cpp.o 34b12ad3b988bd8a
14 3608 1721108971597325811 tests/integration/CMakeFiles/Integration_tests.dir/__/__/src/payoff.cpp.o 32d5536a5fa83e01
11 346 1721111070850770322 build.ninja e3219aea2288c68
22 3682 1721059118279905490 CMakeFiles/Option_pricer.dir/src/market_data.cpp.o 61d812ddbf6caa55
6 5841 1721109039200530988 tests/unit/CMakeFiles/Unit_tests.dir/test_payoff.cpp.o 73e0b1cb6552e096
5 6079 1721109039199903474 tests/unit/CMakeFiles/Unit_tests.dir/test_market_data.cpp.o 306bd583d3d116d3
32 4120 1721055676245245503 tests/CMakeFiles/Option_tester.dir/test_payoff.cpp.o 28ec6f5c54cf60c2
31 4348 1721055676244799577 tests/CMakeFiles/Option_tester.dir/test_market_data.cpp.o bee51a59a9faec9e
3682 4173 1721059121940349810 Option_pricer 8068c323144f72c1
13 3598 1721108971596720262 tests/integration/CMakeFiles/Integration_tests.dir/__/__/src/option.cpp.o dc7cf54f58c31d1b
13 3846 1721108971596193890 tests/integration/CMakeFiles/Integration_tests.dir/__/__/src/market_data.cpp.o bbe92c0ea85d0fb
31 3878 1721055676244173670 tests/CMakeFiles/Option_tester.dir/test_main.cpp.o c3a82df49cebf608
13 368 1721062064821590577 build.ninja e3219aea2288c68
35 926 1721062064895852943 tests/CMakeFiles/Option_tester.dir/test_option.cpp.o a32c329a8da0ea2d
927 1406 1721062065787680098 tests/Option_tester 84dc17b496be3108
32 3485 1721055676245831941 tests/CMakeFiles/Option_tester.dir/__/src/payoff.cpp.o a0e3d0d7499ef87c
33 3657 1721055676246226090 tests/CMakeFiles/Option_tester.dir/__/src/market_data.cpp.o 6b5f9d9d6aae0d70
8 5054 1721109039202996038 tests/unit/CMakeFiles/Unit_tests.dir/__/__/src/payoff.cpp.o 3d7b76e93249cfd3
4 5562 1721109039199235442 tests/unit/CMakeFiles/Unit_tests.dir/__/test_main.cpp.o 1449d7a4f28ee071
30 224 1721111159292832750 tests/CMakeFiles/Tests 51903612152c3c7d
30 224 1721111159292832750 /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/CMakeFiles/Tests 51903612152c3c7d
49 278 1721112733607081719 tests/CMakeFiles/Tests 51903612152c3c7d
49 278 1721112733607081719 /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/CMakeFiles/Tests 51903612152c3c7d
2 changes: 1 addition & 1 deletion cmake-build-cmake/CMakeCache.txt
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=2
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=4
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
Expand Down
10 changes: 9 additions & 1 deletion cmake-build-cmake/CMakeFiles/TargetDirectories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/CMakeFiles/test.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/CMakeFiles/edit_cache.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/CMakeFiles/rebuild_cache.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/CMakeFiles/Option_tester.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/CMakeFiles/Tests.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/CMakeFiles/test.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/CMakeFiles/edit_cache.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/CMakeFiles/rebuild_cache.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/unit/CMakeFiles/Unit_tests.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/unit/CMakeFiles/test.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/unit/CMakeFiles/edit_cache.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/unit/CMakeFiles/rebuild_cache.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/integration/CMakeFiles/Integration_tests.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/integration/CMakeFiles/test.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/integration/CMakeFiles/edit_cache.dir
/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/integration/CMakeFiles/rebuild_cache.dir
Loading

0 comments on commit 9b6569a

Please sign in to comment.