Skip to content

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

@yovasx2

Description

@yovasx2

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions