@TextReport should be configurable #408

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

Projects

None yet

1 participant

@asolntsev
Member

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
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;
@asolntsev asolntsev closed this Sep 25, 2016
@BorisOsipov BorisOsipov added a commit to BorisOsipov/selenide that referenced this issue Nov 23, 2016
@asolntsev @BorisOsipov asolntsev + BorisOsipov #408 TextReport can be printed only for failed tests d785ecd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment