Packages

  • package root
    Definition Classes
    root
  • package mill
    Definition Classes
    root
  • package kotlinlib
    Definition Classes
    mill
  • package kover
    Definition Classes
    kotlinlib
  • trait KoverModule extends BaseClass with KotlinModule

    Adds targets to a mill.kotlinlib.KotlinModule to create test coverage reports.

    Adds targets to a mill.kotlinlib.KotlinModule to create test coverage reports.

    This module allows you to generate code coverage reports for Kotlin projects with Kover.

    To declare a module for which you want to generate coverage reports you can mix the KoverModule trait when defining your module. Additionally, you must define a submodule that extends the KoverTests trait that belongs to your instance of KoverModule.

    import mill.kotlinlib.KotlinModule
    import mill.kotlinlib.kover.KoverModule
    
    object foo extends KotlinModule with KoverModule {
      def kotlinVersion = "2.0.20"
    
      object test extends KotlinModuleTests with KoverTests
    }

    In addition to the normal tasks available to your Kotlin module, Kover Module introduce a few new tasks and changes the behavior of an existing one.

    - ./mill foo.test # tests your project and collects metrics on code coverage - ./mill foo.kover.htmlReport # uses the metrics collected by a previous test run to generate a coverage report in html format - ./mill foo.kover.xmlReport # uses the metrics collected by a previous test run to generate a coverage report in xml format

    The measurement data by default is available at out/foo/kover/koverDataDir.dest/, the html report is saved in out/foo/kover/htmlReport.dest/, and the xml report is saved in out/foo/kover/xmlReport.dest/.

    Definition Classes
    kover
    Annotations
    @Scaladoc()
  • JavaModuleTests
  • KotlinModuleTests
  • KoverTests
  • kover
  • millInternal

trait KoverTests extends BaseClass with TestModule

Linear Supertypes
scalalib.TestModule, define.TaskModule, RunModule, WithZincWorker, JavaModuleBase, BspModule, define.Module, BaseClass, Cacher, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KoverTests
  2. TestModule
  3. TaskModule
  4. RunModule
  5. WithZincWorker
  6. JavaModuleBase
  7. BspModule
  8. Module
  9. BaseClass
  10. Cacher
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def compile: T[CompilationResult]
    Definition Classes
    TestModule
  2. abstract def testFramework: T[String]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def allLocalMainClasses: T[Seq[String]]
    Definition Classes
    RunModule
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def bspBuildTarget: BspBuildTarget
    Definition Classes
    TestModule → BspModule
  7. def bspBuildTargetData: define.Task[Option[(String, AnyRef)]]
    Definition Classes
    BspModule
    Annotations
    @Scaladoc() @internal()
  8. def bspDisplayName: String
    Definition Classes
    BspModule
  9. def bspDisplayName0: String
    Definition Classes
    BspModule
  10. def cachedTarget[T](t: => T)(implicit c: Enclosing): T
    Attributes
    protected[this]
    Definition Classes
    Cacher
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  12. def defaultCommandName(): String
    Definition Classes
    TestModule → TaskModule
  13. def discoveredTestClasses: T[Seq[String]]
    Definition Classes
    TestModule
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalMainClass: T[String]
    Definition Classes
    RunModule
  17. def finalMainClassOpt: T[Either[String, String]]
    Definition Classes
    RunModule
  18. def forkArgs: T[Seq[String]]

    Add Kover specific javaagent options.

    Add Kover specific javaagent options.

    Definition Classes
    KoverTests → RunModule
    Annotations
    @Scaladoc()
  19. def forkEnv: T[Map[String, String]]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  20. def forkWorkingDir: T[Path]
    Definition Classes
    RunModule
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. def getTestEnvironmentVars(args: String*): define.Command[(String, String, String, Seq[String])]
    Definition Classes
    TestModule
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def ivyDeps: T[Agg[scalalib.Dep]]
    Definition Classes
    JavaModuleBase
  26. def localRunClasspath: T[Seq[api.PathRef]]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  27. def mainClass: T[Option[String]]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  28. implicit def millModuleBasePath: BasePath
    Definition Classes
    Module
  29. def millModuleDirectChildren: Seq[define.Module]
    Definition Classes
    Module
  30. implicit def millModuleExternal: External
    Definition Classes
    Module
  31. implicit def millModuleSegments: Segments
    Definition Classes
    Module
  32. implicit def millModuleShared: Foreign
    Definition Classes
    Module
  33. def millOuterCtx: Ctx
    Definition Classes
    BaseClass
  34. def millSourcePath: Path
    Definition Classes
    Module
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  38. def resources: T[Seq[api.PathRef]]
    Definition Classes
    JavaModuleBase
  39. def run(args: define.Task[Args]): define.Command[Unit]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  40. def runBackgroundLogToConsole: Boolean
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  41. def runBackgroundTask(mainClass: define.Task[String], args: define.Task[Args]): define.Task[Unit]
    Definition Classes
    RunModule
  42. def runClasspath: T[Seq[api.PathRef]]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  43. def runForkedTask(mainClass: define.Task[String], args: define.Task[Args]): define.Task[Unit]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  44. def runLocal(args: define.Task[Args]): define.Command[Unit]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  45. def runLocalTask(mainClass: define.Task[String], args: define.Task[Args]): define.Task[Unit]
    Definition Classes
    RunModule
  46. def runMain(mainClass: String, args: String*): define.Command[Unit]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  47. def runMainBackground(mainClass: String, args: String*): define.Command[Unit]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  48. def runMainLocal(mainClass: String, args: String*): define.Command[Unit]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  49. def runUseArgsFile: T[Boolean]
    Definition Classes
    RunModule
    Annotations
    @Scaladoc()
  50. def runner: define.Task[Runner]
    Definition Classes
    RunModule
  51. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  52. def test(args: String*): define.Command[(String, Seq[TestResult])]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  53. def testCached: T[(String, Seq[TestResult])]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  54. def testCachedArgs: T[Seq[String]]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  55. def testClasspath: T[Seq[api.PathRef]]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  56. def testForkGrouping: T[Seq[Seq[String]]]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  57. def testLocal(args: String*): define.Command[(String, Seq[TestResult])]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  58. def testOnly(args: String*): define.Command[(String, Seq[TestResult])]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  59. def testReportXml: T[Option[String]]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  60. def testSandboxWorkingDir: T[Boolean]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  61. def testTask(args: define.Task[Seq[String]], globSelectors: define.Task[Seq[String]]): define.Task[(String, Seq[TestResult])]
    Attributes
    protected
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  62. def testUseArgsFile: T[Boolean]
    Definition Classes
    TestModule
    Annotations
    @Scaladoc()
  63. def toString(): String
    Definition Classes
    Module → AnyRef → Any
  64. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  65. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  66. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  67. def zincWorker: ModuleRef[ZincWorkerModule]
    Definition Classes
    WithZincWorker
  68. object millInternal extends Internal
    Definition Classes
    Module
    Annotations
    @Scaladoc() @internal()

Deprecated Value Members

  1. def doRunBackground(taskDest: Path, runClasspath: Seq[api.PathRef], zwBackgroundWrapperClasspath: Agg[api.PathRef], forkArgs: Seq[String], forkEnv: Map[String, String], finalMainClass: String, forkWorkingDir: Path, runUseArgsFile: Boolean, backgroundOutputs: Option[(ProcessOutput, ProcessOutput)])(args: String*): (Ctx) => Result[Unit]
    Attributes
    protected
    Definition Classes
    RunModule
    Annotations
    @deprecated
    Deprecated

    (Since version Mill 0.12.0) Binary compat shim, use .runner().run(..., background=true)

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from scalalib.TestModule

Inherited from define.TaskModule

Inherited from RunModule

Inherited from WithZincWorker

Inherited from JavaModuleBase

Inherited from BspModule

Inherited from define.Module

Inherited from BaseClass

Inherited from Cacher

Inherited from AnyRef

Inherited from Any

Ungrouped