JetBrains-Research / TestSpark

TestSpark - a plugin for generating unit tests. TestSpark natively integrates different AI-based test generation tools and techniques in the IDE. Started by SERG TU Delft. Currently under implementation by JetBrains Research (Software Testing Research) for research purposes.
MIT License
53 stars 23 forks source link

Create a separate `TestCompilationDependencies` class for Kotlin #315

Open Frosendroska opened 3 months ago

Frosendroska commented 3 months ago

Description

Currently there is one class that stores the dependancies for the compilation part, that are added during compilation even if they are not stated in the project gradle file.

This dependancies are Java specific:

class TestCompilationDependencies {
    companion object {
        fun getJarDescriptors() = listOf(
            JarLibraryDescriptor(
                "mockito-core-5.0.0.jar",
                "https://repo1.maven.org/maven2/org/mockito/mockito-core/5.0.0/mockito-core-5.0.0.jar",
            ),
            JarLibraryDescriptor(
                "hamcrest-core-1.3.jar",
                "https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar",
            ),
            JarLibraryDescriptor(
                "byte-buddy-1.14.6.jar",
                "https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy/1.14.6/byte-buddy-1.14.6.jar",
            ),
            JarLibraryDescriptor(
                "byte-buddy-agent-1.14.6.jar",
                "https://repo1.maven.org/maven2/net/bytebuddy/byte-buddy-agent/1.14.6/byte-buddy-agent-1.14.6.jar",
            ),
        )
    }
}

We should make the separate TestCompilationDependencies for each language and probably for each framework.

For example:

For Kotlin the "org.mockito.kotlin:mockito-kotlin:5.1.0" is missing.