3

My Fixture looks like this:

fixture`Admitted: Happy Path`
  .page(environment.admitted)
  .requestHooks(logger)
  .afterEach(logErrors);

logErrors logs all the API errors from that test, however I would only like to log them if the test failed. Is there a way to tell if the test that just finished succeeded in fixture.afterEach()?

Alex Skorkin
  • 4,264
  • 3
  • 25
  • 47
jwineman
  • 161
  • 1
  • 7

1 Answers1

4

I've provided several approaches to solve this issue in the following question. Please refer to it.

Alex Kamaev
  • 6,198
  • 1
  • 14
  • 29