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 should be configurable #408

Closed
asolntsev opened this Issue Sep 25, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@asolntsev
Member

asolntsev commented Sep 25, 2016

Currently it logs report in any case: no matter if test succeeded or failed.
To make build output fewer, we want to print report only for failed tests.

@asolntsev asolntsev added this to the 3.10 milestone Sep 25, 2016

@asolntsev

This comment has been minimized.

Show comment
Hide comment
@asolntsev

asolntsev Sep 25, 2016

Member

Now it's configurable.

For JUnit:

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

For TestNG:

@Listeners(TextReport.class)

    TextReport.onSucceededTest = false;
    TextReport.onFailedTest = true;
Member

asolntsev commented Sep 25, 2016

Now it's configurable.

For JUnit:

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

For TestNG:

@Listeners(TextReport.class)

    TextReport.onSucceededTest = false;
    TextReport.onFailedTest = true;

@asolntsev asolntsev closed this Sep 25, 2016

BorisOsipov added a commit to BorisOsipov/selenide that referenced this issue Nov 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment