feat: add changeset and update readme
Signed-off-by: Anton Ganhammar <ganhammar@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-code-coverage-backend': patch
|
||||
---
|
||||
|
||||
Added support for LCOV coverage reports
|
||||
@@ -125,6 +125,24 @@ Example:
|
||||
}
|
||||
```
|
||||
|
||||
### Adding a LCOV report
|
||||
|
||||
POST a LCOV INFO file to `/report`
|
||||
|
||||
Example:
|
||||
|
||||
```json
|
||||
// curl -X POST -H "Content-Type:text/plain" -d @coverage.info "localhost:7007/api/code-coverage/report?entity=component:default/entity-name&coverageType=lcov"
|
||||
{
|
||||
"links": [
|
||||
{
|
||||
"href": "http://localhost:7007/api/code-coverage/report?entity=component:default/entity-name",
|
||||
"rel": "coverage"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Reading json coverage
|
||||
|
||||
GET `/report`
|
||||
|
||||
Reference in New Issue
Block a user