An open API service indexing awesome lists of open source software.

https://github.com/codecov/example-kotlin

Kotlin coverage example
https://github.com/codecov/example-kotlin

Last synced: 6 months ago
JSON representation

Kotlin coverage example

Awesome Lists containing this project

README

          

# This Repo is not current.
We recommend following https://github.com/codecov/kotlin-standard at this time.

----

# [Codecov][1] Kotlin Example
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fexample-kotlin.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fexample-kotlin?ref=badge_shield)

## Guide

**Using gradle?** See [gradle example](https://github.com/codecov/example-gradle)

### Travis Setup

Add to your `.travis.yml` file.
```yml
language: java
after_success:
- bash <(curl -s https://codecov.io/bash)
```
### Produce Coverage Reports
#### Add Jacoco plugin
```xml

org.jacoco
jacoco-maven-plugin
0.7.9



prepare-agent



report
test

report


```
## Caveats
### Private Repos
Add to your `.travis.yml` file.
```yml
after_success:
- bash <(curl -s https://codecov.io/bash) -t uuid-repo-token
```

### Coverage Data Beyond the EOF

Kotlin coverage reports may include extra line data that exceeds the real length of the file. Codecov will fix this by extracting the file length from every `.kt` file and append it ot the report.

1. More documentation at https://docs.codecov.io
2. Configure codecov through the `codecov.yml` https://docs.codecov.io/docs/codecov-yaml

We are happy to help if you have any questions. Please contact email our Support at [support@codecov.io](mailto:support@codecov.io)

[1]: https://codecov.io/

## License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fexample-kotlin.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fexample-kotlin?ref=badge_large)