In Kotlin projects, Codecov ignores all files directly under
src/main/kotlin. It includes files in any subdirectory, such as
src/main/kotlin/mydir/MyClass.kt, but ignores it if it’s
Although Java projects include the full package name in the directory structure, the official Kotlin docs recommend not doing this.
In pure Kotlin projects, the recommended directory structure follows the package structure with the common root package omitted. For example, if all the code in the project is in the
org.example.kotlinpackage and its subpackages, files with the
org.example.kotlinpackage should be placed directly under the source root, and files in
org.example.kotlin.network.socketshould be in the
network/socketsubdirectory of the source root.
Codecov should include files at the source root to comply with the official conventions.
Has anyone run into this and figured out a workaround?