Update gcovr configuration

This commit is contained in:
2024-04-30 12:06:32 +02:00
parent 23ef0cc5f7
commit b4a222b100
4 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
{
"sonarCloudOrganization": "rmontanana",
"projectKey": "rmontanana_BayesNet"
}

View File

@@ -1,5 +1,6 @@
filter = bayesnet/
exclude-directories = build_debug/lib/
exclude-directories = build_debug/tests/lib
exclude = bayesnet/utils/loguru.*
print-summary = yes
sort = uncovered-percent

1
lib/catch2 Submodule

Submodule lib/catch2 added at 029fe3b460

View File

@@ -11,7 +11,7 @@ if(ENABLE_TESTING)
add_executable(TestBayesNet TestBayesNetwork.cc TestBayesNode.cc TestBayesClassifier.cc
TestBayesModels.cc TestBayesMetrics.cc TestFeatureSelection.cc TestBoostAODE.cc
TestUtils.cc TestBayesEnsemble.cc ${BayesNet_SOURCES})
target_link_libraries(TestBayesNet PUBLIC "${TORCH_LIBRARIES}" ArffFiles mdlp Catch2::Catch2WithMain )
target_link_libraries(TestBayesNet PUBLIC "${TORCH_LIBRARIES}" ArffFiles mdlp PRIVATE Catch2::Catch2WithMain )
add_test(NAME BayesNetworkTest COMMAND TestBayesNet)
add_test(NAME Network COMMAND TestBayesNet "[Network]")
add_test(NAME Node COMMAND TestBayesNet "[Node]")