Skip to content

Xunit v3 traits are ignored by Property tests #711

Open
@steveisaac

Description

@steveisaac

I observed this issue using packages xunit.v3 2.0.3 and FsCheck.Xunit.v3 3.3.0. This is causing problems for me when trying to run tests filtering on trait.

Example

namespace TestProject

open Xunit
open FsCheck.Xunit

module Tests =

    [<Trait("ShouldRun", "True")>]
    [<Fact>]
    let FactTest() = ()

    [<Trait("ShouldRun", "True")>]
    [<Property>]
    let PropertyTest() = ()

Observed Behaviour

Image

Expected Behaviour

I would expect both listed tests to have the trait ShouldRun=True.

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