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