-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Support Testing with JUnit4 Style Rules #894
Comments
I think junit rules don't really fit into the cucumber [android] world. Cucumber has their own In cucumber you would probably annotate a scenario with a tag and create a step class with maybe it makes sense to create a utility project which ports the |
JUnit Rules would be very helpful for tasks such as Spring Integration. For example @SpringMethodRule doesn't work with Cucumber, because of philosophy??? It seems there is a lot of functionality going into JUnit TestRules and you guys are (strangely) choosing to miss out on it? This also links to serenity-bdd/serenity-core#221 I notice Cucumber does have its own spring integration. It seems to fail when Guice is on the classpath though, is that right? Guice seems a critical dependency on serenity-core so that rules out using Cucumber with Serenity and Spring? |
@johndeverall what would you annotate with such an annotation and when should code bound to it be executed? about the guice/spring classpath problem, please create a separate issue. possibly with a link to a repository where the issue can be reproduced. |
One way of running Cucumber is by using JUnit, but there are others, so we would not want to couple Cucumber & JUnit by sharing a JUnit annotation. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I converted the Android example
CalculatorActivitySteps
from this:To this:
When using the
@Rule
, the activity would not shutdown after the first test.The text was updated successfully, but these errors were encountered: