Use cucumber to run integration tests on host system #2190
Replies: 1 comment
-
This is a fairly fundamental problem in JUnit 4. Different runners can not be composed. I would normally suggest looking at implementing Cucumbers What you might explore is using the |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to run integration tests on host system with Robolectric and I can't understand how to integrate runners properly.
My best attempt look like:
It's working, but obviously I'm not satisfied how dos it look like in test report, in log and so on. In test report it looks like single test
CustomIntegrationTestRunner.runIntegrationTestsOnLocalJVM
and I want similar report as I see after running on emulator.Making
@RunWith(Cucumber.class)
instead of@RunWith(RobolectricTestRunner.class)
leads to uninitialised Robolectric, contexts and a lot of other stuff.May be anybody know how to make it workable?
Beta Was this translation helpful? Give feedback.
All reactions