Skip to content
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

TextReport() #2

Closed
thasherwin opened this issue Jun 20, 2017 · 2 comments
Closed

TextReport() #2

thasherwin opened this issue Jun 20, 2017 · 2 comments
Assignees
Labels

Comments

@thasherwin
Copy link

thasherwin commented Jun 20, 2017

Does TextReport() works in Cucumber JUnit tests? I try adding it into my project but it did not work.. I don't see any logs.

@Rule
  public TestRule report = new TextReport().onFailedTest(true).onSucceededTest(true);

Thanks!

@asolntsev
Copy link
Contributor

@thasherwin Sorry for the long delay.

This question is more related to Cucumber than to Selenide.
Looking at issue cucumber/cucumber-jvm#393, I see that JUnit @Rule annotation is not supported by Cucumber. It means that you cannot use built-in TextReport rule with Cucumber, but you can create a very similar hook in Cucumber.

@thasherwin
Copy link
Author

alright. thx for the update and no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants