JetBrains / teamcity-messages

Python Unit Test Reporting to TeamCity
https://pypi.python.org/pypi/teamcity-messages
Apache License 2.0
137 stars 81 forks source link

pytest: fix comparing asserts #210

Closed ikonst closed 5 years ago

ikonst commented 5 years ago

The plugin adapts pytest's output of (in)equality assertions to the format expected by PyCharm's comparison tool. However it gets truncated values from pytest which makes the comparison mostly useless. This fix overrides the truncation(s), and further improves the comparison by making it multiline (for comparing complex structures).

ikonst commented 5 years ago

image

ikonst commented 5 years ago

(yay, didn't realize there's tests — will review the failures and fix)

ikonst commented 5 years ago

ping @shalupov

shalupov commented 5 years ago

service messages are limited in length. I'll ask TeamCity whats the current limitation.

ikonst commented 5 years ago

I was relying on this for local pytest invocations in PyCharm. If TeamCity imposes stricter limitations than local invocations, can they be told apart?

shalupov commented 5 years ago

I've checked, currently there are no known limits. Thanks for the PR