File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ open class CgTestClassConstructor(val context: CgContext) :
85
85
val notYetConstructedTestSets = testClassModel.methodTestSets.toMutableList()
86
86
87
87
for (nestedClass in testClassModel.nestedClasses) {
88
+ // It is not possible to run tests for both outer and inner class in JUnit4 at once,
89
+ // so we locate all test methods in outer test class for JUnit4.
90
+ // see https://stackoverflow.com/questions/69770700/how-to-run-tests-from-outer-class-and-nested-inner-classes-simultaneously-in-jun
91
+ // or https://stackoverflow.com/questions/28230277/test-cases-in-inner-class-and-outer-class-with-junit4
88
92
when (testFramework) {
89
93
Junit4 -> {
90
94
notYetConstructedTestSets + = nestedClass.methodTestSets
You can’t perform that action at this time.
0 commit comments