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

Assertions are not very verbose #4

Open
Altai-man opened this issue Nov 24, 2019 · 0 comments
Open

Assertions are not very verbose #4

Altai-man opened this issue Nov 24, 2019 · 0 comments

Comments

@Altai-man
Copy link
Member

Altai-man commented Nov 24, 2019

k 5 - GET /auth/register
    ok 1 - Status is acceptable
    not ok 2 - Body is acceptable
    # Failed test 'Body is acceptable'
    # at site#sources/5B90696EE156C43379D1D63343E6F36668CC6090 (Cro::HTTP::Test) line 223
    1..2

Ok, so my assertion is wrong, but... How? Something like "I expected body to match, but got this: ..." would make debugging of test cases easier. I understand that listing a whole body might be overwhelming, but having at least a flag to do so would help tremendously.

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

No branches or pull requests

1 participant