Skip to content

Commit 3df8809

Browse files
Tweak test coverage settings
Make sure SonarCloud doesn't complain about tests not covered by tests. Add all tests as dependencies of the coverage targets.
1 parent 99ae7d2 commit 3df8809

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

CMakeLists.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,23 @@ if(OPENCMW_ENABLE_TESTING)
146146
EXECUTABLE
147147
ctest
148148
DEPENDENCIES
149+
base64pp_tests
150+
clientPublisher_tests
151+
client_tests
149152
core_tests
153+
disruptor_core_tests
154+
disruptor_rx_tests
155+
disruptor_tests
156+
disruptor_waitstrategy_tests
157+
majordomo_worker_rest_tests
158+
majordomo_worker_tests
150159
majordomo_tests
160+
mockserver_tests
161+
RBAC_tests
162+
rest_client_mock_server_tests
163+
rest_client_only_tests
151164
serialiser_tests
165+
SubscriptionMatch_tests
152166
EXCLUDE
153167
"$CMAKE_BUILD_DIR/*"
154168
"concepts/.*"
@@ -159,9 +173,23 @@ if(OPENCMW_ENABLE_TESTING)
159173
EXECUTABLE
160174
ctest
161175
DEPENDENCIES
176+
base64pp_tests
177+
clientPublisher_tests
178+
client_tests
162179
core_tests
180+
disruptor_core_tests
181+
disruptor_rx_tests
182+
disruptor_tests
183+
disruptor_waitstrategy_tests
184+
majordomo_worker_rest_tests
185+
majordomo_worker_tests
163186
majordomo_tests
187+
mockserver_tests
188+
RBAC_tests
189+
rest_client_mock_server_tests
190+
rest_client_only_tests
164191
serialiser_tests
192+
SubscriptionMatch_tests
165193
EXCLUDE
166194
"$CMAKE_BUILD_DIR/*"
167195
"concepts/.*"

sonar-project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ sonar.organization=fair-acc
1414
# exclude benchmark which crashes the Analysis
1515
# sonar.exclusions=bench/bm_case1.cpp
1616
sonar.coverageReportPaths=/home/runner/work/opencmw-cpp/build/coverage_sonarcube.xml
17+
sonar.sources = src/
18+
sonar.tests = src/
19+
sonar.exclusions = src/**/test/**/*
20+
sonar.test.inclusions = src/**/test/**/*

0 commit comments

Comments
 (0)