Skip to content

Use Expecto's runTestsInAssemblyWithCLIArgs function to enable test discovery using [<Tests>] annotation #316

@tw0po1nt

Description

@tw0po1nt

Is your feature request related to a problem? Please describe.
Currently, the dominant approach to providing tests to the test runner in this repository is manually via Expecto's list-based API. This is error-prone, as it is easy to omit tests (I did so in #314).

Describe the solution you'd like
Expecto has a function named runTestsInAssemblyWithCLIArgs that allows for test discovery via an annotation [<Tests>]. This was the approach used in FsToolkit.ErrorHandling.TaskResult.Tests prior to it being removed in #314. I think we should move toward this approach for the whole solution, if possible.

Describe alternatives you've considered
Not forgetting to add tests to the list

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