-
Notifications
You must be signed in to change notification settings - Fork 170
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
Report not showing test description #71
Comments
And I guess it's the similar situation as in #65 Thanks |
I don't understand how this used to work like in the examples. However, in order to get test_case.test_docstring available to the template you could add one of the lines below to the _TestInfo class.
Related to: #65 |
Thanks @mwchambers ! I traced back into the commits before a bit and found why.
Wondering if I should change it back to what it was or not lol. Thanks for the tips mate, cheers. |
Hi @TonyWu3027 Did you add the line back in a PR? or how did you manage to show the test description? Thanks in advance! |
Sorry I didn't really get a chance to make a PR since I used it in a previous project of mine and I'm quite busy with other stuff at the moment. From what I can see, if the method is not called anywhere else than in the Best, |
Hello everyone. Any chance there's been a solution to this? I started using HtmlTestRunner and would like to see the description of each test in my report. Edit: Here is how I did it,
|
Description
Hi team first all thanks for making this amazing package.
Here's my issue:
I tried to produce the HTML report but somehow the
shortDescription()
is not shown in the report properly. It shows the name of a test method rather than thedocstring
of it. But the example on README does show the short descriptions rather than the names. Screenshot:Now: showing test method names
Expectation: showing test method docstring (description)
What I Did
Example test method
The text was updated successfully, but these errors were encountered: