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
This commit is contained in:
Dylan M. Taylor authored and GitHub committed 2026-11-10 22:30:00 -05:00
1 parent 006e4df225
commit 009a46a6b5
1 file changed
+7 -3
+7 -3
View File
@@ -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