You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgTestClassConstructor.kt
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -186,10 +186,12 @@ data class TestsGenerationReport(
Unit tests for $classUnderTest were generated partially.<br>
326
-
<b>Warning</b>: Some test cases were ignored, because no mocking framework is installed in the project.<br>
327
-
Better results could be achieved by <a href="${TestReportUrlOpeningListener.prefix}${TestReportUrlOpeningListener.mockitoSuffix}">installing mocking framework</a>.
summaryMessage = { "Unit tests for $classUnderTest were generated with warnings.<br>" }
351
+
352
+
if (model.forceMockHappened) {
353
+
initialWarnings.add {
354
+
"""
355
+
<b>Warning</b>: Some test cases were ignored, because no mocking framework is installed in the project.<br>
356
+
Better results could be achieved by <a href="${TestReportUrlOpeningListener.prefix}${TestReportUrlOpeningListener.mockitoSuffix}">installing mocking framework</a>.
357
+
""".trimIndent()
358
+
}
359
+
}
360
+
if (model.hasTestFrameworkConflict) {
361
+
initialWarnings.add {
362
+
"""
363
+
<b>Warning</b>: There are several test frameworks in the project.
364
+
To select run configuration, please refer to the documentation depending on the project build system:
0 commit comments