Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces test coverage scripts in
package.jsonfiles that generates merged reports across all packages in the monorepo, along with SonarCloud integration for static application security testing (SAST) and code quality analysis. The newtest:coverage:allcommand runs tests from the root and produces a single coverage report combining results from all packages, while individual packages can still generate their own coverage via test:coverageMotivation and Context
Test Coverage Infrastructure:
Previously, there was no way to generate a unified coverage report across the monorepo. Each package could run tests independently, but aggregating coverage metrics for the entire codebase required manual effort. This change enables:
SAST/SonarCloud Integration:
Adds static application security testing via SonarCloud to the CI/CD pipeline. This provides:
How Has This Been Tested?
./coverage/pnpm --filter <package> test:coverageBreaking Changes
None. All changes are additive.
Types of changes
Checklist
Additional context
New scripts:
test:coverage:all(root) — runs all tests with merged coveragetest:coverage(per package) — runs coverage for individual packageConfiguration changes:
New dependencies:
@vitest/coverage-v8— V8 coverage provider@modelcontextprotocol/vitest-config— added to root for config inheritanceSonarCloud setup:
sonar-project.propertieswith project configuration