Skip to content

Commit dc45932

Browse files
committed
Docs added
1 parent 1988332 commit dc45932

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree/CgTestClassConstructor.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ open class CgTestClassConstructor(val context: CgContext) :
8585
val notYetConstructedTestSets = testClassModel.methodTestSets.toMutableList()
8686

8787
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
8892
when (testFramework) {
8993
Junit4 -> {
9094
notYetConstructedTestSets += nestedClass.methodTestSets

0 commit comments

Comments
 (0)