How to use TestNG with Roboelectric?

So, I'm trying to integrate TestNG with RoboElectric, but am a bit stuck.

An example on the website shows how to do this for JUnit, but not for TestNG.

@RunWith does not exist in TestNG.

Can anyone insert a brief demonstration of how to integrate RoboElectric with TestNG?

+4
source share
1 answer

I just looked at this RoboelectricTestRunner

I see no problem to ensure that all functions are provided using the TestNG configuration methods.

I would recommend an abstract testuperclass that encapsulates all the necessary functions

0
source

All Articles