Skip to content

Commit

Permalink
feat: enhance TAP module DX
Browse files Browse the repository at this point in the history
  • Loading branch information
shah committed Jan 28, 2024
1 parent df0856b commit e468ee8
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 123 deletions.
1 change: 0 additions & 1 deletion lib/tap/deps-test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Dependencies required during engineering/testing only (not in production)
export * as path from "https://deno.land/[email protected]/path/mod.ts";
export * from "https://deno.land/[email protected]/assert/mod.ts";
export * as tapParser from "npm:tap-parser";
15 changes: 14 additions & 1 deletion lib/tap/fixture-01.tap
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
TAP version 14
1..4
# comment at top of file
ok 1 - Input file opened
ok 1 - Input file opened (with subtests)

# Subtest: subtests
1..2
ok 1 - sub 1
not ok 2 - sub 2
---
message: sub 2 invalid
severity: fatal
...


not ok 2 - First line of the input valid
---
message: First line invalid
Expand All @@ -10,10 +21,12 @@ not ok 2 - First line of the input valid
got: Flirble
expect: Fnible
...

ok 3 - Read the rest of the file
# comment 2
not ok 4 - Summarized correctly # TODO Not written yet
---
message: Can't make summary yet
severity: todo
...

Loading

0 comments on commit e468ee8

Please sign in to comment.