No video

Kover - The Code Coverage Plugin

The recording brought to you by American Express. americanexpress.io/kotlin-jobs
Quiz: kotl.in/KOVER-QUIZ. Read more about quizzes in the quiz rules kotl.in/QUIZ-Rules
Static analysis is only one way of ensuring your code quality. Another way of ensuring it is by creating an extensive test suite for your project. But many of you know about one problem with testing in Kotlin that existed since the first release. It’s been a challenge to measure the code coverage precisely. There are some great tools like JaCoCo that work with Kotlin code, but they are not integrated well with our Gradle toolchain and multiplatform projects. In this Kotlin release we’re starting to fix this issue.
In this video, we present you Kover - our new Gradle plugin that measures code coverage for Kotlin code built with Kotlin/JVM compiler. We'll go over its main features and explain how to set it up in your project, so you won't have problems with coverage any more.
Kover Github repository - github.com/Kotlin/kotlinx-kover
Kotlin 2021 Premier Online Event Playlist - • Kotlin 2021 Premier On...
Kotlin 2021 Premier Online Event schedule:
Kotlin & WebAssembly: A First Look - • Kotlin & WebAssembly: ...
October 21, 16:00 CEST | 10:00 EDT
KMM Beta Roadmap - • Kotlin Multiplatform M...
October 23, 16:00 CEST | 10:00 EDT
What's New in Ktor 2.0 (live) - • What's New in Ktor 2.0
October 26, 16:00 CEST | 10:00 EDT
Spring Native with Kotlin (live) - • Spring Native with Kotlin
October 28, 16:00 CEST | 10:00 EDT
Kotlin Symbol Processors -
October 30, 16:00 CEST | 10:00 EDT
K2 Compiler: a top down view (live) - • The New Kotlin K2 Comp...
November 2, 16:00 CET | 11:00 EDT
Kover - the Code Coverage plugin - • Improving Your Kotlin ...
November 4, 16:00 CET | 11:00 EDT
Improving Your Kotlin Code Quality With Qodana - • Improving Your Kotlin ...
November 6, 16:00 CET | 11:00 EDT
We’d love to know what you thought of the event. Your feedback will help us make our next event even better - kotl.in/event21-feedback
During production of our recorded presentations we followed all applicable public health and safety recommendations to protect our staff from possible transmission of COVID-19.
#kotlinEvent21 #Kotlin #Kover #Testing

Пікірлер: 18

  • @Kotlin
    @Kotlin2 жыл бұрын

    Save the date for the upcoming Kotlin 2021 Premier Online Event videos - kotl.in/Kotlin-Event-2021

  • @nathanglevy
    @nathanglevy2 жыл бұрын

    Looks great! Looking forward to trying this, it looks like it resolves a lot of the issues we had with plain Jacoco

  • @CommanderSteps
    @CommanderSteps2 жыл бұрын

    Looks very promising. I have waited for this! :)

  • @Poisonedyouth79
    @Poisonedyouth792 жыл бұрын

    Very interesting. Looking forward to compare plain Jacoco with new plugin.

  • @alexanderj8981
    @alexanderj89812 жыл бұрын

    Great! Looking forward to it. Unfortunately I cannot use it in the real project because it seems to lack some basic features like excluding specific classes and separate methods granularly (like Jacoco does by using the "@Generated" annotation), which is essential to filter out false "uncovered" code in generated/boiler code methods. But I hope Kover will catch up and become the primary coverage tool.

  • @AlexGLuque
    @AlexGLuque2 жыл бұрын

    I’m eager to try it!

  • @AlexGLuque

    @AlexGLuque

    2 жыл бұрын

    Already running in our KMM project at work 🙂

  • @nodserj
    @nodserj2 жыл бұрын

    Since I have enabled the plugin, about 10% of my tests were failed, when I started "test with Coverage"

  • @kenyee88
    @kenyee882 жыл бұрын

    Does Kover handle the hidden kotlin null checks conditional branches? This is why it's impossible to get to 100% with jacoco.

  • @leonidstartsev7056

    @leonidstartsev7056

    2 жыл бұрын

    It should handle them, yes.

  • @Goldy131992
    @Goldy1319922 жыл бұрын

    Looks interesting, is this compatible with android projects?

  • @leonidstartsev7056

    @leonidstartsev7056

    2 жыл бұрын

    Yes, recently released version supports them

  • @theLoneCodesman
    @theLoneCodesman2 жыл бұрын

    And what about maven? Out of luck?

  • @meshpasha

    @meshpasha

    2 жыл бұрын

    good catch! I did not see this. But why would one use MVN now days. Gradle is so much faster.

  • @CristanMeijer
    @CristanMeijer2 жыл бұрын

    Man, this is _not_ ready for Android development yet. Well, I did my due diligence and created 3 issues about this: #76, #77 and #78. - edit: well that's fast. 2 of these are actually already fixed and it's now actually usable now.

  • @GerardoEpitacio

    @GerardoEpitacio

    2 жыл бұрын

    Still not fitting well for complex android projects (multiple modules with multiple flavors.)

  • @ChrisAthanas
    @ChrisAthanas2 жыл бұрын

    Maybe have a glass of water handy next time! He seems thirsty!

  • @FessNiklas1987
    @FessNiklas1987 Жыл бұрын

    Теперь я ненавижу букву Ш