0 test class found in package ‘

前端 未结 9 2097
长发绾君心
长发绾君心 2021-02-06 22:32

I have recently installed IntelliJ IDEA 13.1.4 and the jRebel plugin. I have licensed it ok and created and added configurations in catalina.bat file.

When

相关标签:
9条回答
  • 2021-02-06 23:01

    On your topbar or Alt + Shift + F10 and Run your project with your default Configuration not "values in app"

    0 讨论(0)
  • 2021-02-06 23:01

    When I used the IntelliJ 'Create Test' feature, my test classes were automatically created as private.

    When I manually changed my test classes to public, my test classes were found.

    Source

    0 讨论(0)
  • 2021-02-06 23:03

    I had this same issue and for me it was because TestNG plugin was not installed in Intellij. I did not choose it when installed Intellij and forgot about that.

    0 讨论(0)
  • 2021-02-06 23:08

    Make sure 'app' is selected to run...

    0 讨论(0)
  • 2021-02-06 23:10

    Make sure your class is declared as public and not 'default'

    public class MyClassTest
    

    as opposed to:

    class MyClassTest
    

    When creating a new test class via IntelliJ shortcut the generated class was not declared as public and that caused the error.

    0 讨论(0)
  • 2021-02-06 23:14

    For me this was the problem: My test folder was ./test/src/com/.... I had marked test as test folder, but test/src was the right one.

    The "false" setting worked for me with Jintellij 2017.1.3, but not in 2018.02.

    0 讨论(0)
提交回复
热议问题