allankp / pytest-testrail

pytest plugin for integration with TestRail, for creating testruns and updating results
MIT License
96 stars 124 forks source link

Custom Testrail Comments #41

Closed ImXron closed 6 years ago

ImXron commented 6 years ago

Hi,

First off, great project!

I was wondering if there is a way to post custom comments to testrail when a test fails? Right now it's a stack trace, which is fine. For my situation, I'm looking to post details like the state of current variables.

If it's not supported, would this be of interest to you (or anyone)? I would love to contribute. It might also be out of scope for this project though.

Let me know.

Thanks!

apallier commented 6 years ago

Hi @ImXron Could you give a concrete example please? The pytest stack trace ever outputs test variables no?

ImXron commented 6 years ago

Thanks for the response.

I totally missed this in the pytest documentation, but if you pass a "-l" to pytest it will show all the local variables in the stack trace. So that and this project solve my problem.

I'll close this issue.

Thanks!