Maven/Surefire not finding unit tests

后端 未结 2 525
醉话见心
醉话见心 2021-01-16 05:59

I tried creating a test project with maven and the unit testing worked fine. However, when trying to do the same for a j2ee project, the unit tests cannot be found by surefi

2条回答
  •  青春惊慌失措
    2021-01-16 06:29

    Surefire has a few problems when you tell it to run both TestNG and JUnit tests. There is a trick to make this work, though, but I can't remember what it is right now. Try to search around, you'll probably find the answer on SO somewhere.

提交回复
热议问题