Menu
KotestKotestKotestOverviewFrameworkExtensionsAssertionsProperty TestingIntellij Plugin
Issue TrackerGitHub
🌜
🌞
KotestKotestKotest
  • Overview
  • Framework
  • Extensions
  • Assertions
  • Property Testing
  • Intellij Plugin
  • Issue Tracker
  • GitHub
  • Test Framework
  • Testing Styles
  • Conditional Evaluation
  • Isolation Modes
  • Exceptions
  • Data Driven Testing
  • Non-deterministic Testing
    • Eventually
    • Continually
    • Until
    • Retry
  • Listeners
  • Plugins
  • Integrations
    • Mocking
    • Jacoco
  • Ordering
    • Spec Ordering
    • Test Ordering
  • Grouping Tests with Tags
  • Resources
    • Closing resources automatically
    • Temporary Files
  • Configuration
    • Test Case Config
    • Project Level Config
    • System properties
  • Test Extensions
  • Test Factories
  • Timeouts

Jacoco

Kotest integrates with Jacoco for code coverage in the normal way you'd expect.

  1. In gradle, add jacoco to your plugins.
plugins {
...
jacoco
...
}
  1. Add the jacoco XML report task.
tasks.jacocoTestReport {
reports {
xml.isEnabled = true
}
}
Edit this page
Previous
« Mocking and Kotest
Next
Spec Ordering »

Community

  • Slack
  • Github
  • Stack Overflow
Copyright © 2021 Kotest, Inc. Built with Docusaurus.