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

Mini reporter not printing t.log() content when test is successful #2201

Closed
yovasx2 opened this issue Aug 6, 2019 · 1 comment
Closed

Mini reporter not printing t.log() content when test is successful #2201

yovasx2 opened this issue Aug 6, 2019 · 1 comment

Comments

@yovasx2
Copy link
Contributor

yovasx2 commented Aug 6, 2019

Reporters mini are not outputting t.log() when test is successful content ("another pass"):

  1. Tap:
TAP version 13
# suite › api › privileges › before hook
  # Faker seeded with: 18891
  # Access token generated
loged pass
loged error
# suite › api › privileges › [ validationx] Create privilege
ok 1 - suite › api › privileges › [validationx] Create privilege
  * another pass
# suite › api › privileges › [ validationx] List privileges
not ok 2 - suite › api › privileges › [validationx] List privileges
  * another error
  ---
    name: AssertionError
    message: Rejected promise returned by test
    values:
      'Rejected promise returned by test. Reason:': |-
        Error {
          message: 'sasasasa',
        }
    at: |-
      test (test/suite/api/privileges.spec.js:45:11)
      lib/common/fixtures.js:29:11
  ...

1..2
# tests 2
# pass 1
# fail 1
  1. Mini:
⠧ loged pass
⠇ loged error

  1 test failed

  suite › api › privileges › [ validationx] List privileges
    ℹ another error

  /Users/yovasx2/platform/e2e-tests/test/suite/api/privileges.spec.js:45

   44:     t.log("another error");                
   45:     throw new Error("sasasasa")            
   46:     const response = await request(oapiUrl)

  Rejected promise returned by test. Reason:

  Error {
    message: 'sasasasa',
  }

  test (test/suite/api/privileges.spec.js:45:11)
  lib/common/fixtures.js:29:11
@yovasx2 yovasx2 changed the title Mini not printing t.log() content when test is successful Mini reporter not printing t.log() content when test is successful Aug 6, 2019
@novemberborn
Copy link
Member

Both due to the age of this issue, and the state of our reporters, I've decided to roll this into #2501.

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

No branches or pull requests

2 participants