NUnit3.DotNetNew.Template 1.2.0

Project and item templates containing basic NUnit 3 Test Project.

There is a newer version of this package available.
See the version list below for details.
Install-Package NUnit3.DotNetNew.Template -Version 1.2.0
dotnet add package NUnit3.DotNetNew.Template --version 1.2.0
<PackageReference Include="NUnit3.DotNetNew.Template" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NUnit3.DotNetNew.Template --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage

To install NUnit Project Template from nuget, run command:

dotnet new -i NUnit3.DotNetNew.Template

To create a NUnit library project from template, run:

dotnet new nunit

By default it will create NUnit Test Project targeted to netcoreapp2.0 (which is in preview for now).
You can specify --framework command line switch to change targeting:

dotnet new nunit --framework netcoreapp1.1

To specify new folder name for your NUnit Test Project you can use -n switch.
Following command will create NUnit-Tests folder and will generate NUnit Test Project there:

dotnet new nunit -n NUnit-Tests --framework netcoreapp1.0

If you'd like to create F# or VB test project, you can specify project language with -lang switch:

dotnet new nunit -lang F#

Note that VB doesn't support dashes in project name. If you have dotnet-new-nunit-example.vbproj test project, then you'll get compiler error like this:

 vbc : error BC30113: 'dotnet-new-nunit-example' is not a valid name and cannot be used as the root namespace name. [/home/hal/git/dotnet-new-nunit-example/dotnet-new-nunit-example.vbproj]

To workaround this compiler error, rename your project so that it contained no dashes.

For more info on dotnet new CLI, please see documentation.

For more info on NUnit testing framework, please see its project or nunit.org website.

License

This packages is distributed under conditions of MIT license.

Usage

To install NUnit Project Template from nuget, run command:

dotnet new -i NUnit3.DotNetNew.Template

To create a NUnit library project from template, run:

dotnet new nunit

By default it will create NUnit Test Project targeted to netcoreapp2.0 (which is in preview for now).
You can specify --framework command line switch to change targeting:

dotnet new nunit --framework netcoreapp1.1

To specify new folder name for your NUnit Test Project you can use -n switch.
Following command will create NUnit-Tests folder and will generate NUnit Test Project there:

dotnet new nunit -n NUnit-Tests --framework netcoreapp1.0

If you'd like to create F# or VB test project, you can specify project language with -lang switch:

dotnet new nunit -lang F#

Note that VB doesn't support dashes in project name. If you have dotnet-new-nunit-example.vbproj test project, then you'll get compiler error like this:

 vbc : error BC30113: 'dotnet-new-nunit-example' is not a valid name and cannot be used as the root namespace name. [/home/hal/git/dotnet-new-nunit-example/dotnet-new-nunit-example.vbproj]

To workaround this compiler error, rename your project so that it contained no dashes.

For more info on dotnet new CLI, please see documentation.

For more info on NUnit testing framework, please see its project or nunit.org website.

License

This packages is distributed under conditions of MIT license.

Release Notes

- update nunit dependency to v3.8.1
- update NUnit3TestAdapter dependency to v3.9.0
- use Microsoft.NET.Test.Sdk v15.3.0

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.6.3 9,646 8/6/2019
1.6.2 1,235 4/9/2019
1.6.1 185,619 1/11/2019
1.6.0 64,587 11/20/2018
1.5.3 67,265 10/24/2018
1.5.2 2,473 9/12/2018
1.5.1 35,423 6/7/2018
1.5.0 278 6/5/2018
1.4.0 3,281 3/20/2018
1.3.0 2,979 11/14/2017
1.2.0 287 11/8/2017
1.1.0 750 7/24/2017
1.0.1 404 5/31/2017
1.0.0 308 5/30/2017
Show less