Skip to content
This repository was archived by the owner on May 29, 2018. It is now read-only.
This repository was archived by the owner on May 29, 2018. It is now read-only.

Displayed method name with parameterized tests #2

@florentbr

Description

@florentbr

I'm using parameterized tests having a custom method name like :
"test_csv_params_from_file(v1=24,v2=2.34)"

The method name in the html report will be :
"3)"

This issue only appends when the method name contains a dot, otherwise the displayed method is correct.

REASON

The method name is extracted by parsing the method id on the last dot :
Line 600 > name = t.id().split('.')[-1]

FIX

Use the method name attribute instead :
Line 600 > name = t._testMethodName

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions