-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Description
- HtmlTestRunner version: 1.2.1
- Python version: 3.8.1
- Operating System: macOS Catalina 10.15.5
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 the docstring
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
# Building the TestSuite.
suite = TestSuite([MySuite1, MySuite2.])
# Run tests.
if __name__ == '__main__':
kwargs = {
"report_title" : "Database Comparison Test",
"report_name" : 'db_comparison',
"combine_reports" : True
}
runner = HTMLTestRunner(**kwargs)
result = runner.run(suite)
Example test method
def test_client_id(self):
"""some desc goes here"""
Metadata
Metadata
Assignees
Labels
No labels