Skip to content

testParam discovery #527

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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