Installation Instructions
These instructions apply to self-hosted Backstage only. To use this plugin on Roadie, visit the docs.
Install the plugin into Backstage
bash
yarn --cwd packages/app add @backstage-community/plugin-code-coverage
Modify your EntityPage.tsx to render code coverage reports.
typescript
// packages/app/src/components/catalog/EntityPage.tsx
import { TechDocsAddons } from '@backstage/plugin-techdocs-react';
import { ReportIssue } from '@backstage/plugin-techdocs-module-addons-contrib';
+import { EntityCodeCoverageContent } from '@backstage-community/plugin-code-coverage';
@@ -226,6 +227,10 @@ const defaultEntityPage = (
<EntityLayout.Route path="/docs" title="Docs">
{techdocsContent}
</EntityLayout.Route>
+
+ <EntityLayout.Route path="/code-coverage" title="Code Coverage">
+ <EntityCodeCoverageContent />
+ </EntityLayout.Route>
</EntityLayout>
);
Add backstage.io/code-coverage annotations to relevant catalog-info.yaml files.
yaml
...
metadata:
annotations:
backstage.io/code-coverage: enabled
Things to Know
Useful Links
Changelog
This changelog is produced from commits made to the Code Coverage plugin since over 1 year ago. It may not contain information about all commits. Releases and version bumps are intentionally omitted. This changelog is generated by AI.
Security
- Update express to 4.21.1. Fix XSS risk in response.redirect. PR #1733 . Merged 1 year ago
- Include the fix introduced in 4.20.0. See the security advisory GHSA qw6h vgh9 j6wx
Breaking changes
- None
Set up Backstage in minutes with Roadie
Focus on using Backstage, rather than building and maintaining it.