maven - Can't create unittests IntelliJ -
i not able select testfolder in intellij. reason wasn't there when created project, added manually. after did that, went project structure --> modules, marked test.
i not allowed leave source directory, when creating testcase.
see image:
the problem doesn't occure when create new project, testfolder set automaticly.
it seems have wrong project structure.
it should follows:
project-name |-- pom.xml |-- src |-- main | |-- java | |-- resources |-- test |-- java |-- resources and don't mark test directory test source root. should mark test/java (subdirectory under test folder) instead:


Comments
Post a Comment