Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonymakarewicz committed Jul 16, 2024
1 parent 7498247 commit aae0987
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 92 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ jobs:
run: sudo apt-get install -y libgtest-dev libgmock-dev clang-tidy lcov #clang-format

- name: Configure CMake
run: |
rm -rf build
mkdir build
cd build
run: | # ensures a fresh environment for each build
mkdir -p build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_STANDARD=20 ..
- name: Build Main Executable and Test Executable
run: |
cd build
run: |
cd build
make
# - name: Analyze code with clang-tidy
Expand All @@ -44,7 +43,7 @@ jobs:
- name: Run all Tests
run: |
cd build
ctest -R AllTests --output-on-failure
ctest --output-on-failure
# - name: Generate code coverage
# run: |
Expand Down
2 changes: 2 additions & 0 deletions cmake-build-cmake/.ninja_log
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@
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
41 262 1721114972327539687 tests/CMakeFiles/Tests 51903612152c3c7d
41 262 1721114972327539687 /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/CMakeFiles/Tests 51903612152c3c7d
78 changes: 2 additions & 76 deletions cmake-build-cmake/Testing/Temporary/LastTest.log
Original file line number Diff line number Diff line change
@@ -1,77 +1,3 @@
Start testing: Jul 16 08:52 CEST
Start testing: Jul 16 09:29 CEST
----------------------------------------------------------
1/2 Testing: UnitTests
1/2 Test: UnitTests
Command: "/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/unit/Unit_tests"
Directory: /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/unit
"UnitTests" start time: Jul 16 08:52 CEST
Output:
----------------------------------------------------------
[==========] Running 12 tests from 4 test suites.
[----------] Global test environment set-up.
[----------] 6 tests from MarketDataTest
[ RUN ] MarketDataTest.SingletonInstance
[ OK ] MarketDataTest.SingletonInstance (0 ms)
[ RUN ] MarketDataTest.NotifyObserver
[ OK ] MarketDataTest.NotifyObserver (0 ms)
[ RUN ] MarketDataTest.NotifyAllObservers
[ OK ] MarketDataTest.NotifyAllObservers (0 ms)
[ RUN ] MarketDataTest.AddAndUpdateStockData
[ OK ] MarketDataTest.AddAndUpdateStockData (0 ms)
[ RUN ] MarketDataTest.UpdateNonExistentStock
[ OK ] MarketDataTest.UpdateNonExistentStock (0 ms)
[ RUN ] MarketDataTest.RiskFreeRate
[ OK ] MarketDataTest.RiskFreeRate (0 ms)
[----------] 6 tests from MarketDataTest (0 ms total)

[----------] 1 test from StockDataTest
[ RUN ] StockDataTest.InvalidStockData
[ OK ] StockDataTest.InvalidStockData (0 ms)
[----------] 1 test from StockDataTest (0 ms total)

[----------] 4 tests from PayoffSingleStrikeTest
[ RUN ] PayoffSingleStrikeTest.PayoffCallTests
[ OK ] PayoffSingleStrikeTest.PayoffCallTests (0 ms)
[ RUN ] PayoffSingleStrikeTest.PayoffPutTests
[ OK ] PayoffSingleStrikeTest.PayoffPutTests (0 ms)
[ RUN ] PayoffSingleStrikeTest.PayoffDigitalCallTests
[ OK ] PayoffSingleStrikeTest.PayoffDigitalCallTests (0 ms)
[ RUN ] PayoffSingleStrikeTest.PayoffDigitalPutTests
[ OK ] PayoffSingleStrikeTest.PayoffDigitalPutTests (0 ms)
[----------] 4 tests from PayoffSingleStrikeTest (0 ms total)

[----------] 1 test from PayoffDoubleStrikesTest
[ RUN ] PayoffDoubleStrikesTest.PayoffDoubleDigitalTests
[ OK ] PayoffDoubleStrikesTest.PayoffDoubleDigitalTests (0 ms)
[----------] 1 test from PayoffDoubleStrikesTest (0 ms total)

[----------] Global test environment tear-down
[==========] 12 tests from 4 test suites ran. (0 ms total)
[ PASSED ] 12 tests.
<end of output>
Test time = 0.01 sec
----------------------------------------------------------
Test Passed.
"UnitTests" end time: Jul 16 08:52 CEST
"UnitTests" time elapsed: 00:00:00
----------------------------------------------------------

2/2 Testing: IntegrationTests
2/2 Test: IntegrationTests
Command: "/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/integration/Integration_tests"
Directory: /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/integration
"IntegrationTests" start time: Jul 16 08:52 CEST
Output:
----------------------------------------------------------
[==========] Running 0 tests from 0 test suites.
[==========] 0 tests from 0 test suites ran. (0 ms total)
[ PASSED ] 0 tests.
<end of output>
Test time = 0.01 sec
----------------------------------------------------------
Test Passed.
"IntegrationTests" end time: Jul 16 08:52 CEST
"IntegrationTests" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Jul 16 08:52 CEST
End testing: Jul 16 09:29 CEST
4 changes: 2 additions & 2 deletions cmake-build-cmake/tests/Testing/Temporary/CTestCostData.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
UnitTests 2 0.00937588
IntegrationTests 2 0.00869047
UnitTests 3 0.00582454
IntegrationTests 3 0.00482503
---
14 changes: 7 additions & 7 deletions cmake-build-cmake/tests/Testing/Temporary/LastTest.log
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Start testing: Jul 16 08:52 CEST
Start testing: Jul 16 09:29 CEST
----------------------------------------------------------
1/2 Testing: UnitTests
1/2 Test: UnitTests
Command: "/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/unit/Unit_tests"
Directory: /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/unit
"UnitTests" start time: Jul 16 08:52 CEST
"UnitTests" start time: Jul 16 09:29 CEST
Output:
----------------------------------------------------------
[==========] Running 12 tests from 4 test suites.
Expand Down Expand Up @@ -52,26 +52,26 @@ Output:
Test time = 0.02 sec
----------------------------------------------------------
Test Passed.
"UnitTests" end time: Jul 16 08:52 CEST
"UnitTests" end time: Jul 16 09:29 CEST
"UnitTests" time elapsed: 00:00:00
----------------------------------------------------------

2/2 Testing: IntegrationTests
2/2 Test: IntegrationTests
Command: "/Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/integration/Integration_tests"
Directory: /Users/anthony/CLionProjects/Option_pricer/cmake-build-cmake/tests/integration
"IntegrationTests" start time: Jul 16 08:52 CEST
"IntegrationTests" start time: Jul 16 09:29 CEST
Output:
----------------------------------------------------------
[==========] Running 0 tests from 0 test suites.
[==========] 0 tests from 0 test suites ran. (0 ms total)
[ PASSED ] 0 tests.
<end of output>
Test time = 0.02 sec
Test time = 0.01 sec
----------------------------------------------------------
Test Passed.
"IntegrationTests" end time: Jul 16 08:52 CEST
"IntegrationTests" end time: Jul 16 09:29 CEST
"IntegrationTests" time elapsed: 00:00:00
----------------------------------------------------------

End testing: Jul 16 08:52 CEST
End testing: Jul 16 09:29 CEST

0 comments on commit aae0987

Please sign in to comment.