Skip to content

Explicitness of tests is ignored in the presence of a filter with adding multiple negated categories #21

@aeyaey

Description

@aeyaey

When using a filter like the one mentioned below, tests marked with ExplicitAttribute (but without any of the mentioned categories) is selected. This is unexpected.
When using a filter with only a single negated category, no ExplicitAttribute marked tests is selected - as expected.

When using the nunit3 framework the filter works a expected.

--where "cat != Db and cat != UnitTest"

resulting in:

<filter>
  <and>
    <not>
      <cat>Db</cat>
    </not>
    <not>
      <cat>UnitTest</cat>
    </not>
  </and>
</filter>

There is a rather hackish workaround, which doesn't work with Nunit3: --where "cat != Db, UnitTest" - but I rather not use that.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions