Running single test class or group with Surefire and TestNG

前端 未结 4 1919
忘了有多久
忘了有多久 2021-02-14 09:10

I want to run single test class from command line using Maven and TestNG

Things that doesn\'t work:

mvn -Dtest=ClassName test

I have de

4条回答
  •  后悔当初
    2021-02-14 09:50

    I would suggest to try something like

    mvn test -Dincludes=rs/magrathea/TestClassName
    

    although I haven't tested this myself.

提交回复
热议问题