mattpolzin/swift-codecov
Runs simple analysis on swift test codecov output.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| PROJECT_NAME | The name of the target project. This must be specified if you would like local dependencies (specified by path in the project manifest) to be left out of coverage numbers. If specified, this must be exactly the same spelling as the root folder of the target project. | no | "" |
| CODECOV_JSON | The location of the JSON file produced by swift test --enable-code-coverage | no | .build/debug/codecov/*.json |
| PRINT_STDOUT | true by default, but if false then will not output the whole codecov table to stdout. | no | true |
| SORT_ORDER | filename by default, but if specified otherwise will apply a sort order to the test coverage table. This is only relevant if PRINT_STDOUT is true. Possible values: filename, +cov, -cov | no | filename |
| MINIMUM_COVERAGE | By default, there is no minimum coverage. Set this to make the script fail if the minimum coverage is not met. | no | — |
| INCLUDE_DEPENDENCIES | `false` by default, but if `true` then coverage numbers will include project dependencies. | no | false |
| INCLUDE_TESTS | `false` by default, but if `true` then coverage numbers will include the percentage of the test files themselves that was exercised. | no | false |
Outputs
| name | description |
|---|---|
| CODECOV | Overall code coverage percent. |
| MINIMUM_COVERAGE | Just passing through the `MINIMUM_COVERAGE` input. |