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

feat: better logging for assertions after a test #1517

Closed
wants to merge 4 commits into from
Closed

feat: better logging for assertions after a test #1517

wants to merge 4 commits into from

Conversation

brandonocasey
Copy link
Contributor

Was running into assertions happening after tests for one of our unit tests and locally made this change. It seems useful to know what test and what assertion are running after the test are supposed to have completed so I think that It would be nice to have this change in qunit.

test/main/assert.js Outdated Show resolved Hide resolved
src/test.js Outdated Show resolved Hide resolved
Copy link
Member

@smcclure15 smcclure15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a helpful enhancement, being more specific.
I left a few comments on maybe where we could get the messaging more clear

test/main/test.js Outdated Show resolved Hide resolved
Krinkle pushed a commit that referenced this pull request Nov 29, 2020
better logging for assertions after a test.

the "Assertion after test" failure now includes the test name
and assertion message.

Closes #1517.
@Krinkle Krinkle closed this in ff7932e Nov 29, 2020
@brandonocasey brandonocasey deleted the feat/better-assertion-after-test branch December 1, 2020 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants