tap-json
tap-json copied to clipboard
No AVA compatibility
AVA --tap option is not having assertions for operators, it produces most of the time name, message, and at
The input was this:
TAP version 13
# suite › browser › signin › signin.ad › [monitoring, cr7] Active Directory User - Rejected when user is disabled in AD
not ok 1 - suite › browser › signin › signin.ad › [monitoring, cr7] Active Directory User - Rejected when user is disabled in AD
---
name: AssertionError
message: Rejected promise returned by test
values:
'Rejected promise returned by test. Reason:': |-
Error {
message: 'No node found for selector: button[type=submitsss]',
}
at: 'assert (node_modules/puppeteer/lib/helper.js:231:11)'
...
1..1
# tests 1
# pass 0
# fail 1
producing an empty extra
Now the output is:
{"stats":{"asserts":1,"passes":0,"failures":1},"asserts":[{"number":1,"comment":"suite › browser › signin › signin.ad › [monitoring, cr7] Active Directory User - Rejected when user is disabled in AD","name":"suite › browser › signin › signin.ad › [monitoring, cr7] Active Directory User - Rejected when user is disabled in AD","ok":false,"extra":{}}]}
If anyone encounters the same issue, please note that yovasx2 made an attempt to submit a PR which wasn't answered and he eventually ended up kindly publishing his own fork ava-tap-json Thank you !