Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate Tests for the Datastructure PowerGrid #53

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
0d25278
Activate Test for the Datastructure PowerGrid
franziska-wegner Dec 26, 2023
0c0c88b
Merge branch 'main' into franziska-wegner/2023/december/tests/datastr…
franziska-wegner Dec 26, 2023
220056e
Merge branch 'main' into franziska-wegner/2023/december/tests/datastr…
franziska-wegner Dec 26, 2023
51f3da2
Merge branch 'main' into franziska-wegner/2023/december/tests/datastr…
franziska-wegner Dec 30, 2023
a723985
DeathTest Condition for AddGeneratorAt with Exception
franziska-wegner Dec 30, 2023
9472a01
DeathTest Condition for RemoveGeneratorAt with Exception
franziska-wegner Dec 30, 2023
4f25c0b
DeathTest Condition for HasGeneratorAt with Exception
franziska-wegner Dec 30, 2023
31e0635
DeathTest Condition for RemoveGeneratorAt using generator Id & non-ex…
franziska-wegner Dec 30, 2023
f9964c7
DeathTest Condition for RemoveGeneratorAt using VertexId & GeneratorI…
franziska-wegner Dec 30, 2023
54cbeba
DeathTest Condition for RemoveGeneratorAt using VertexId & Generator …
franziska-wegner Dec 30, 2023
50d6551
DeathTest Condition for RemoveGeneratorAt using VertexId & Generator …
franziska-wegner Dec 30, 2023
de9fe79
DeathTest condition for `RemoveGeneratorAt` using generator non-exist…
franziska-wegner Dec 30, 2023
4c2295f
DeathTest condition for `RemoveGeneratorAt` using `VertexId` & `Gener…
franziska-wegner Dec 30, 2023
2ecf357
DeathTest condition for `HasGeneratorAt` using `VertexId` with exception
franziska-wegner Dec 30, 2023
2452273
DeathTest condition for `HasGeneratorAt` using `VertexId` with exception
franziska-wegner Dec 30, 2023
dc065e5
DeathTest condition for `HasGeneratorAt` using `Vertex` object with e…
franziska-wegner Dec 30, 2023
6e23b86
DeathTest condition for `GeneratorId`s with exception
franziska-wegner Dec 30, 2023
82260ea
DeathTest condition for `GeneratorAt` with exception
franziska-wegner Dec 30, 2023
9f4e0c3
DeathTest condition for `GeneratorsAt` using `VertexId` with exception
franziska-wegner Dec 30, 2023
1cf5ab5
DeathTest condition for `GeneratorsAt` using `Vertex` object with exc…
franziska-wegner Dec 30, 2023
472a3f5
DeathTest condition for `TotalRealPowerGenerationBoundAt` with exception
franziska-wegner Dec 30, 2023
bace4a6
DeathTest condition for `TotalRealPowerGenerationAt` with exception
franziska-wegner Dec 30, 2023
1a72164
DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Ve…
franziska-wegner Dec 30, 2023
2b633a5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 30, 2023
70481d0
DeathTest condition for `TotalRealPowerGenerationAt` non-existing `Ve…
franziska-wegner Dec 30, 2023
e210ee9
DeathTest condition for `TotalReactivePowerGenerationBoundAt` with ex…
franziska-wegner Dec 30, 2023
69d7e2a
DeathTest condition for `TotalReactivePowerGenerationAt` with exception
franziska-wegner Dec 30, 2023
70d6724
DeathTest condition for `TotalReactivePowerGenerationAt` non-existing…
franziska-wegner Dec 30, 2023
1a43eaa
DeathTest condition for `TotalReactivePowerGenerationAt` non-existing…
franziska-wegner Dec 30, 2023
83dc037
DeathTest condition for `AddLoadAt` using `VertexId` with exception
franziska-wegner Dec 30, 2023
9d9190a
DeathTest condition for `AddLoadAt` using `VertexId` with exception
franziska-wegner Dec 30, 2023
3796728
DeathTest condition for `AddLoadAt` using `Vertex` object with exception
franziska-wegner Dec 30, 2023
d62e89a
DeathTest condition for `RemoveLoadAt` using `VertexId` & `LoadId` wi…
franziska-wegner Dec 30, 2023
9306cd9
DeathTest condition for `RemoveLoadAt` using `VertexId` where `LoadId…
franziska-wegner Dec 30, 2023
42d89d6
DeathTest condition for `HasLoadAt` with exception
franziska-wegner Dec 30, 2023
a2cb904
DeathTest condition for `LoadIds` with exception
franziska-wegner Dec 30, 2023
5cba722
DeathTest condition for `LoadAt` with exception
franziska-wegner Dec 30, 2023
ee198aa
DeathTest condition for `LoadAt` with exception
franziska-wegner Dec 30, 2023
b350d95
DeathTest condition for `LoadAt` with exception
franziska-wegner Dec 30, 2023
356969d
DeathTest condition for `LoadAt` using `VertexId` with exception
franziska-wegner Dec 30, 2023
789d7e7
DeathTest condition for `LoadAt` using `Vertex` with exception
franziska-wegner Dec 30, 2023
b8d805d
DeathTest condition for `RealPowerLoadAt` with exception
franziska-wegner Dec 30, 2023
e128ab6
DeathTest condition for `RealPowerLoadAt` using `Vertex` with exception
franziska-wegner Dec 30, 2023
b09f33a
DeathTest condition for `TotalRealPowerLoadBoundAt` with exception
franziska-wegner Dec 30, 2023
32b87a0
DeathTest condition for `AddGeneratorRealPowerSnapshotAt` with exception
franziska-wegner Dec 30, 2023
f02e167
DeathTest condition for `AddLoadSnapshotAt` with exception
franziska-wegner Dec 30, 2023
1469d11
DeathTest condition for `AddSnapshotTimestamp` with exception
franziska-wegner Dec 30, 2023
55686dc
DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception
franziska-wegner Dec 30, 2023
b9e7e42
DeathTest condition for `GeneratorRealPowerSnapshotsAt` with exception
franziska-wegner Dec 30, 2023
4546722
DeathTest condition for `LoadSnapshotOfLoadsSize` with exception
franziska-wegner Dec 30, 2023
dab6d6c
DeathTest condition for `LoadSnapshotOfConstNoneDeath` with exception
franziska-wegner Dec 30, 2023
3b0250c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 30, 2023
ab69bfb
Add missing namespace
franziska-wegner Dec 30, 2023
3f04229
Repair path to test cases
franziska-wegner Dec 30, 2023
02defb9
Update to Psa to PSA
franziska-wegner Dec 30, 2023
a96ff0f
DeathTest condition for `AddSnapshotWeighting` with exception
franziska-wegner Dec 30, 2023
e19d93e
DeathTest condition for `GeneratorRealPowerSnapshotAt` using `Generat…
franziska-wegner Dec 31, 2023
34acc49
Remove assertion from exception handling part/release mode path
franziska-wegner Dec 31, 2023
ee5757e
Comment out some tests that need further investigation
franziska-wegner Dec 31, 2023
f9c17f7
DeathTest condition for `TimestampAt` with exception
franziska-wegner Dec 31, 2023
8055abb
Comment out some tests that need further investigation
franziska-wegner Dec 31, 2023
3cbaf5c
Temporary remove tests
franziska-wegner Jan 1, 2024
213d94e
Temporary remove tests
franziska-wegner Jan 1, 2024
f4d47a3
Merge branch 'main' into franziska-wegner/2023/december/tests/datastr…
franziska-wegner Jan 1, 2024
63da3e3
Add missing header for "Helper/TestHelper.hpp"
franziska-wegner Jan 1, 2024
9e0ce6e
Remove clang linter warning
franziska-wegner Jan 1, 2024
57064c5
Comment out TestPowerGridPyPsaExample test
franziska-wegner Jan 2, 2024
346a27a
Remove and add some `ctest` flags
franziska-wegner Jan 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ jobs:
# Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected
# 3 threads. See https://github.com/google/googletest/blob/main/docs/advanced.md#death-tests-and-threads for more
# explanation and suggested solutions, especially if this is the last message you see before your test times out.
run: ctest --verbose -j1 --build-config ${{ matrix.build_type }} -T Test
run: ctest --verbose -j1 --build-config ${{ matrix.build_type }} --test-action Test

- name: Test Coverage Collection (Ubuntu GCC Debug only)
working-directory: ${{ steps.strings.outputs.build-output-dir }}
Expand All @@ -272,7 +272,7 @@ jobs:
# 3 threads. See https://github.com/google/googletest/blob/main/docs/advanced.md#death-tests-and-threads for more
# explanation and suggested solutions, especially if this is the last message you see before your test times out.
if: ${{ startsWith(matrix.os,'ubuntu-') && startsWith(matrix.c_compiler,'gcc') && matrix.build_type == 'Debug' }}
run: ctest --verbose -j1 --build-config ${{ matrix.build_type }} -T Coverage
run: ctest --rerun-failed --output-on-failure --verbose --build-config ${{ matrix.build_type }} --test-action Coverage

- name: Upload coverage reports to Codecov (Ubuntu GCC Debug only)
if: ${{ startsWith(matrix.os,'ubuntu-') && startsWith(matrix.c_compiler,'gcc') && matrix.build_type == 'Debug' }}
Expand Down
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ add_executable(TestDynamicGraph DataStructures/Graphs/TestDynamicGraph.cpp)
target_link_libraries(TestDynamicGraph EGOA ${GUROBI_LIBRARIES} gtest gtest_main gmock_main)
add_test(NAME TestDynamicGraph COMMAND TestDynamicGraph)

# add_executable(TestPowerGrid DataStructures/Graphs/TestPowerGrid.cpp)
# target_link_libraries(TestPowerGrid EGOA ${GUROBI_LIBRARIES} gtest gtest_main gmock_main)
# add_test(NAME TestPowerGrid COMMAND TestPowerGrid)
add_executable(TestPowerGrid DataStructures/Graphs/TestPowerGrid.cpp)
target_link_libraries(TestPowerGrid EGOA ${GUROBI_LIBRARIES} gtest gtest_main gmock_main)
add_test(NAME TestPowerGrid COMMAND TestPowerGrid)

# add_executable(TestBlockCutTree DataStructures/Graphs/TestBlockCutTree.cpp)
# target_link_libraries(TestBlockCutTree EGOA ${GUROBI_LIBRARIES} gtest gtest_main gmock_main)
Expand Down
Loading
Loading