TestNG not running tests in testing suite

前端 未结 15 2359
北荒
北荒 2021-02-19 21:16

I\'m trying to run a testing suite using XML and TestNG, but I\'m always getting the same message using both: Eclipse and the command line:

[TestNG] Running:
  /         


        
15条回答
  •  鱼传尺愫
    2021-02-19 21:20

    You could also check imports for imported Test annotation, should be:

    import org.testng.annotations.Test;
    @Test
    public myTest(){ ... }
    

    and not for example:

    import org.junit.Test;
    

提交回复
热议问题