From 009a46a6b5d8ad8aee7b28aa458b69108110a17c Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 10 Nov 2026 22:30:00 -0500 Subject: [PATCH] sonar: analyse the sources, not only the 3 platform test files (#798) * sonar: analyse the sources, not only the 3 platform test files * sonar: every crate's tests are tests, as the coverage job treats them --- sonar-project.properties | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 8265ddc1..425239a0 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,6 +1,10 @@ sonar.projectKey=storytold_craft-libs sonar.organization=storytold -# Browser fault-injection fixtures belong to the test analysis scope. -sonar.tests=crates/platform/tests -sonar.test.inclusions=crates/platform/tests/** +# Sources and tests both start at the root, as in lightcraft: sonar.tests alone stops the scanner +# defaulting sources to the repository, which left every analysis with only 3 test files indexed. +# Test files are the ones the coverage job leaves out of lcov (tests/ directories, tests.rs and +# *_tests.rs), which includes the browser fault-injection fixtures in crates/platform/tests. +sonar.sources=. +sonar.tests=. +sonar.test.inclusions=**/tests/**,**/tests.rs,**/*_tests.rs