Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long assertion messages corrupt the formatted output #30

Closed
prantlf opened this issue Sep 9, 2019 · 0 comments · Fixed by #29
Closed

Long assertion messages corrupt the formatted output #30

prantlf opened this issue Sep 9, 2019 · 0 comments · Fixed by #29

Comments

@prantlf
Copy link
Contributor

prantlf commented Sep 9, 2019

Assertions like t.ok(value, message) can be passed messages longer than usual terminal width. For example:

TAP version 13
# Exported dependency names can be resolved.
ok 1 The dependency "csui" should be resolvable.
ok 2 The dependency "esoc" should be resolvable.
# Resolving an unknown dependency fails.
ok 3 The message "Unrecognised dependency: "dummy"." should start with "Unrecognised dependency:".

1..3
# tests 3
# pass  3

# ok

The output appears to print the assertion message on two lines and when the test name is going to be printed, it ends up at the beginning of the first line too. For example:

✓ Exported dependency names can be resolved.
# Resolving an unknown dependency fails.
✓ Resolving an unknown dependency fails.ncy: "dummy"." should start with "Unre# tests 3
# pass  3
✓ ok

The expected output should contain only the test names:

✓ Exported dependency names can be resolved.
✓ Resolving an unknown dependency fails.
# pass  3
✓ ok
@prantlf prantlf changed the title Long asserting messages corrupt the formatted output Long assertion messages corrupt the formatted output Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant