tapjs/tap-parser

A plan of 1..0 with 1 or more asserts should be a failure

Closed this issue · 0 comments

This is not proper TAP, but the parser allows it:

$ echo -e "TAP version 13\nok\n1..0" | tap-parser
[ [ 'version', '13' ],
  [ 'assert', { ok: true, id: 1 } ],
  [ 'plan', { start: 1, end: 0 } ],
  [ 'complete',
    { ok: true,
      count: 1,
      pass: 1,
      plan: { start: 1, end: 0, skipAll: true } } ] ]

It should complain that the plan (0) doesn't match the number of tests found.