Closed kzaikin closed 6 years ago
I have checked the proposed hack at a large-scale Android project with both .java and .kt in production code and both .java and .kt in test code.
This is exactly what I'm looking for! I've configured my Kotlin application to generate coverage reports but Sonar won't pick them up
Hey just tested it on sonar-kotlin itself and it works, thanks for contributing!
Awesome stuff, any idea when this will be available in the plugin from the marketplace?
The plugin from the marketplace should be the offical kotlin plugin from sonarsource. This is an unofficial based on detekt and can just be downloaded via the github releases page. the newest version, 0.5.1, have this changes and is based on detekt RC9.2
jacoco coverage was not detected for .kt files as plugin was using JavaClasspath for coverage detection. As a result, only .class files produced from .java files were used in detection of test coverage. Here I introduce a hack, where I add a path with .class files from
libraries
to binaries for analysis.