Skip to content

Adding additional information to tap output #2220

Closed
@smyth64

Description

@smyth64

In my tap output I get this:

# test › Make test
not ok 22 - test › Make test
  ---
    name: AssertionError
    assertion: assert
    operator: '!!'
    values:
      'Value is not truthy:': 'false'
    at: |-
      assert (test/services/test/test.js:47:7)
      t (test/services/test.js:40:14)
  ...

But what I want is additional information that I can parse later to a JSON.
I tried it with test.log() but it always prefixes an asterisk (*) so the default tap-parser ignores it =/

# test › Make test
not ok 22 - test › Make test
  * ---
  * lala: lolo
  * ...
  ---
    name: AssertionError
    assertion: assert
    operator: '!!'
    values:
      'Value is not truthy:': 'false'
    at: |-
      assert (test/services/test/test.js:47:7)
      t (test/services/test.js:40:14)
  ...

Is it impossible to add just some payload to the tap output? This is so inflexible...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions