haf / expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
Apache License 2.0
663 stars 96 forks source link

Expecto doesn't allow pass application arguments with dotnet run #370

Closed gtach2o closed 4 years ago

gtach2o commented 4 years ago

dotnet run has an option to provide custom arguments to an application [[--] [application arguments]]

--
Delimits arguments to dotnet run from arguments for the application being run. 
All arguments after this delimiter are passed to the application run.

https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-run

So I would like to use it with expecto to provide custom arguments for tests for instance: dotnet run --filter-test-case basic -- --env staging but I'm getting an error

ERROR: unknown options: --env staging
EXPECTO! v8.13.1

Maybe there is another way how to pass custom arguments to the tests?

haf commented 4 years ago
gtach2o commented 4 years ago

Got it. Thank you!