Skip to content

Commit 06fdbbd

Browse files
committed
Ide classpath
1 parent aa3fbae commit 06fdbbd

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/util/DependencyUtils.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ fun checkFrameworkDependencies(dependencyPaths: String?) {
3232
.toSet()
3333

3434
val testFrameworkPatterns = TestFramework.allItems.map { it.patterns() }
35-
val testFrameworkFound = dependencyNames.matchesAnyOf(testFrameworkPatterns) ||
36-
dependencyPathsSequence.any { checkDependencyIsFatJar(it) }
37-
38-
if (!testFrameworkFound) {
39-
error("""
40-
Test frameworks are not found in dependency path $dependencyPaths, dependency names are:
41-
${dependencyNames.joinToString(System.lineSeparator())}
42-
"""
43-
)
44-
}
4535

4636
val mockFrameworkPatterns = MockFramework.allItems.map { it.patterns() }
4737
val mockFrameworkFound = dependencyNames.matchesAnyOf(mockFrameworkPatterns) ||

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ object UtTestsDialogProcessor {
142142
val testCaseGenerator = TestCaseGenerator(
143143
Paths.get(buildDir),
144144
classpath,
145-
classpath,
145+
pluginJarsPath.joinToString(separator = File.pathSeparator),
146146
isCanceled = { indicator.isCanceled }
147147
)
148148

0 commit comments

Comments
 (0)