Skip to content

Report not showing test description #71

@TonyWu3027

Description

@TonyWu3027
  • 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:

截屏2020-07-16 下午3 10 27

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions