Skip to content

Codewars reporter ignores @testdox annotation #4

Open
@hobovsky

Description

@hobovsky

PHPUnit provides @testdox annotation, which allows custom titles for test classes and test methods. However, Codewars reporter emits <DESCRIBE::> and <IT::> which do not use custom titles.

The cause can be that the CW reporter uses $test->getName(), while custom titles seem to be obtained with \PHPUnit\Util\Test::describeAsString($test), as can be seen in the default reporter.

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