-
Notifications
You must be signed in to change notification settings - Fork 103
Description
The # Subtest
lines of test output are indented with four spaces:
For successful tests:
ok 15 - tests.test_account
# Subtest: tests.test_split()
ok 1 - Create split
ok 2 - Create split 2
1..2
ok 16 - tests.test_split
For failed tests:
# Looks like you failed 7 test of 12
not ok 14 - tests.test_crud
# Failed test 14: "tests.test_crud"
# Subtest: tests.test_account()
ok 1 - No classifier entry
This is just a small sample, but in a huge list of tests I find it difficult to read. I constantly want to read the first left-aligned line as the header for the subsequent set of tests, but it's actually the next line indented by four spaces and preceded by #
, and the line I'm reading is the summary for the set of tests above it.
Is this alignment intentional? I had a quick perusal of the TAP spec but didn't see anything for or against. I did find the Node Tap project with examples of output that is correctly aligned (IMO), and much easier to read.
What does everyone think of aligning the "# Subtest" line to the left edge rather than four spaces in?
I'd submit a PR, but I'm not sure which of the pgtap*.sql
files in the sql/
directory to modify.
Pretty sure it's this line, though, that needs to have the spaces removed:
RETURN NEXT ' ' || diag_test_name('Subtest: ' || tests[i]);