The following table is a full list of the arguments available to manage unit testing projects and test cases from a .NET 6 command line environment.
Argument | Description | Default value | Available with |
---|---|---|---|
--test-case | -tc | Name of the test case | Program | dotnet new mfunit, dotnet new mfunit-test, dotnet new mfunit-dd-test |
--test-case-description | -tcd | Description of the test case | The description of the test case | dotnet new mfunit, dotnet new mfunit-test, dotnet new mfunit-dd-test |
--test-case-traits | -tct | Traits associated with the test case | smoke, regression, sanity, interface, other | dotnet new mfunit, dotnet new mfunit-test, dotnet new mfunit-dd-test |
--test-timeout | -tt | Timeout associated with the test case | 100000 | dotnet new mfunit, dotnet new mfunit-test, dotnet new mfunit-dd-test |
--test-skip | -ts | Mark test case as skipped | false | dotnet new mfunit, dotnet new mfunit-test, dotnet new mfunit-dd-test |
--pre-load-library | -pll | Library name to pre-load during test case setup | none | dotnet new mfunit, dotnet new mfunit-test, dotnet new mfunit-dd-test |
--enable-dotnet-run-command | -edrc | Enable 'dotnet run' to execute tests | true | dotnet new mfunit |
--sourceformat | -sf | Sourceformat used for the project. Possible values: variable | fixed | free. | variable | dotnet new mfunit |
--include-test-case | -itc | Includes a default test case file when project is created. | true | dotnet new mfunit |
--no-restore | -nr | Skips automatic restore (of external assemblies) during the create and build processes. | false | dotnet new mfunit |
--target-framework-override | -tfo | Overrides the target framework | dotnet new mfunit | |
--MicroFocus-sdk-version | -mfsv | Version of the Micro Focus SDK embedded in global.json. | 2.0.0 | dotnet new mfunit |
--lang-version | -lv | Sets lang-version in the project file. | dotnet new mfunit |