Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sonar.projectVersion=1.0

# include C++ and Python source file
# since the C++ part is header only, also include the C++ unit test .cpp file
sonar.sources=src,tests/cpp_unit_tests,tests/cpp_integration_tests,tests/cpp_validation_tests,tests/c_api_tests,power_grid_model_c
sonar.sources=src,tests/cpp_unit_tests,tests/cpp_integration_tests,tests/cpp_validation_tests,tests/native_api_tests,power_grid_model_c
sonar.tests=tests/unit
sonar.sourceEncoding=UTF-8

Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ find_package(doctest REQUIRED)

include("${doctest_DIR}/doctest.cmake")

add_subdirectory("c_api_tests")
add_subdirectory("native_api_tests")
add_subdirectory("cpp_unit_tests")
add_subdirectory("cpp_integration_tests")
add_subdirectory("cpp_validation_tests")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

set(PROJECT_SOURCES
"test_entry_point.cpp"
"test_cpp_api_meta_data.cpp"
"test_cpp_api_model.cpp"
"test_cpp_api_serialization.cpp"
"test_api_meta_data.cpp"
"test_api_model.cpp"
"test_api_serialization.cpp"
)

add_executable(power_grid_model_c_api_tests ${PROJECT_SOURCES})
add_executable(power_grid_model_api_tests ${PROJECT_SOURCES})

target_link_libraries(power_grid_model_c_api_tests
target_link_libraries(power_grid_model_api_tests
PRIVATE
power_grid_model_c
power_grid_model_cpp
doctest::doctest
)

doctest_discover_tests(power_grid_model_c_api_tests)
doctest_discover_tests(power_grid_model_api_tests)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace power_grid_model_cpp {

TEST_CASE("C++ API Meta Data") {
TEST_CASE("API Meta Data") {
SUBCASE("Datasets") {
// check dataset
for (Idx idx_dataset = 0; idx_dataset != MetaData::n_datasets(); ++idx_dataset) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void check_exception(PowerGridError const& e, PGM_ErrorCode const& reference_err
}
} // namespace

TEST_CASE("C++ API Model") {
TEST_CASE("API Model") {
using namespace std::string_literals;

Options options{};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ constexpr char const* complete_json_data =
R"({"version":"1.0","type":"input","is_batch":false,"attributes":{},"data":{"node":[{"id":5, "u_rated": 10500}],"source":[{"id":6, "node": 5, "status": 1, "u_ref": 1.0}]}})";
} // namespace

TEST_CASE("C++ API Serialization and Deserialization") {
TEST_CASE("API Serialization and Deserialization") {

ID node_id = 5;
Buffer node_buffer{PGM_def_input_node, 1};
Expand Down
Loading