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
- Host: GitHub
- URL: https://github.com/codecov/example-kotlin
- Owner: codecov
- License: mit
- Created: 2014-09-28T18:54:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-01-22T20:33:59.000Z (almost 2 years ago)
- Last Synced: 2025-07-10T06:11:37.917Z (6 months ago)
- Language: Kotlin
- Homepage: https://codecov.io
- Size: 22.5 KB
- Stars: 19
- Watchers: 11
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
[](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
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fexample-kotlin?ref=badge_large)