Names for dynamically generated TestNG tests in Eclipse plugin

后端 未结 2 805
故里飘歌
故里飘歌 2021-01-20 04:17

I converted a dynamically generated JUnit test suite to TestNG using a @Factory annotation. The tests are generated by scanning a directory that contains severa

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-20 05:07

    Try extending XmlTest in your test class and call setName(). I extended XmlSuite and used setName to name my "test suite" which is a class with multiple tests defined in it and that worked for me. In fact I just tried what I suggested on the same class and now it's called a test with the correct name. I'm not sure why the ITest interface is being ignored as I also tried that approach without success.

提交回复
热议问题