This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep comments in child tests with child test
- Loading branch information
Showing
8 changed files
with
142 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
module.exports = | ||
[ [ 'line', '# before version\n' ], | ||
[ 'comment', '# before version\n' ], | ||
[ 'line', 'TAP version 13\n' ], | ||
[ 'version', '13' ], | ||
[ 'line', '# after version, before result\n' ], | ||
[ 'comment', '# after version, before result\n' ], | ||
[ 'line', 'not ok 1 - please keep my diags\n' ], | ||
[ 'line', ' # before diag\n' ], | ||
[ 'line', ' ---\n' ], | ||
[ 'line', ' # mid diag\n' ], | ||
[ 'line', ' after: comment\n' ], | ||
[ 'line', ' ...\n' ], | ||
[ 'assert', | ||
{ ok: false, | ||
id: 1, | ||
name: 'please keep my diags', | ||
diag: { after: 'comment' } } ], | ||
[ 'comment', ' # before diag\n' ], | ||
[ 'comment', ' # mid diag\n' ], | ||
[ 'line', ' # after diag\n' ], | ||
[ 'comment', ' # after diag\n' ], | ||
[ 'line', ' # Subtest: child\n' ], | ||
[ 'child', | ||
[ [ 'line', '# Subtest: child\n' ], | ||
[ 'comment', '# Subtest: child\n' ], | ||
[ 'line', '1..2\n' ], | ||
[ 'plan', { start: 1, end: 2 } ], | ||
[ 'line', '# before 1\n' ], | ||
[ 'comment', '# before 1\n' ], | ||
[ 'line', 'ok 1\n' ], | ||
[ 'line', '# before 2\n' ], | ||
[ 'line', 'ok 2\n' ], | ||
[ 'assert', { ok: true, id: 1 } ], | ||
[ 'comment', '# before 2\n' ], | ||
[ 'assert', { ok: true, id: 2 } ], | ||
[ 'complete', | ||
{ ok: true, count: 2, pass: 2, plan: { start: 1, end: 2 } } ] ] ], | ||
[ 'line', ' 1..2\n' ], | ||
[ 'line', ' # before 1\n' ], | ||
[ 'line', ' ok 1\n' ], | ||
[ 'line', ' # before 2\n' ], | ||
[ 'line', ' ok 2\n' ], | ||
[ 'line', '# before 2\n' ], | ||
[ 'extra', '# before 2\n' ], | ||
[ 'line', 'ok 2 - child\n' ], | ||
[ 'line', '# after 2, brefore plan\n' ], | ||
[ 'line', '1..2\n' ], | ||
[ 'assert', { ok: true, id: 2, name: 'child' } ], | ||
[ 'comment', '# after 2, brefore plan\n' ], | ||
[ 'plan', { start: 1, end: 2 } ], | ||
[ 'line', '# after plan\n' ], | ||
[ 'comment', '# after plan\n' ], | ||
[ 'complete', | ||
{ ok: false, | ||
count: 2, | ||
pass: 1, | ||
fail: 1, | ||
plan: { start: 1, end: 2 } } ] ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# before version | ||
TAP version 13 | ||
# after version, before result | ||
not ok 1 - please keep my diags | ||
# before diag | ||
--- | ||
# mid diag | ||
after: comment | ||
... | ||
# after diag | ||
# Subtest: child | ||
1..2 | ||
# before 1 | ||
ok 1 | ||
# before 2 | ||
ok 2 | ||
# before 2 | ||
ok 2 - child | ||
# after 2, brefore plan | ||
1..2 | ||
# after plan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters