Skip to content

testParam discovery #527

@arialdomartini

Description

@arialdomartini

A testParam is not discoverd, unless it is inside a testList. Is this by design?

module MyTests =

    [<Tests>]
    let ``this is not discovered``: Test seq=
        testParam 42 [
          "not discovered", fun value () ->
              Expect.isTrue (value = 42) "OK!"
        ]

    [<Tests>]
    let ``this is discovered``: Test =
        testList "discoverd!" <|
            (testParam 42 [
               "discoverd", fun value () ->
                  Expect.isTrue (value = 42) "OK!" ]
             |> Seq.toList)

This is using Program.fs:

[<EntryPoint>]
let main argv =
    runTestsInAssemblyWithCLIArgs [] argv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions