开发者

spring with testNG without subclassing

开发者 https://www.devze.com 2023-03-03 23:40 出处:网络
is there any way to use testNG and spring without subclassing or copying half of AbstractTestNGSpringContextTests? is there anything simple like jun开发者_StackOverflow社区it\'s @RunWith?According to

is there any way to use testNG and spring without subclassing or copying half of AbstractTestNGSpringContextTests? is there anything simple like jun开发者_StackOverflow社区it's @RunWith?


According to the Spring documentation, it doesn't look like it provides a TestNG test runner out of the box:

In addition to generic testing infrastructure, the TestContext framework provides explicit support for JUnit 3.8.2, JUnit 4.5+, and TestNG 5.10 in the form of abstract support classes. For JUnit 4.5+, the framework also provides a custom Runner that allows one to write test classes that are not required to extend a particular class hierarchy.

I suppose you could try to write a your own custom TestNG test runner that could do something similar.

0

精彩评论

暂无评论...
验证码 换一张
取 消