Skip to content

NUnitLite filtering fails if space in test name before ( #3636

Closed
@crinksdr

Description

@crinksdr

If I create a test using a testcase source with a name "{m} (unique attribute)" and pass that test in through -testlist argument the test will not be discovered. If there is no space "{m}(unique attribute)" this works fine. The problem is in the TextRunner.MakeRunSetting when its building the prefilter list from the test list it is not trimming the sub string so the parent of the tests are not being discovered.

Work around is to build my own prefilter list with the trim and pass it in using the undocumented --prefilter argument

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions