This tutorial will show you how to add a test project to your solution. We will be using the projTest
argument to create a project called MyNewLibrary.Tests
. This template assumes you've already created a solution using the Tutorial.
tests/
directory of your project:
cd tests/
dotnet new
to create a new library project.
dotnet new mini-scaffold -n MyNewLibrary.Tests --outputType projLib
cd ..
dotnet sln add src/MyNewLibrary.Tests/MyNewLibrary.Tests.fsproj
dotnet add src/MyNewLibrary.Tests/MyNewLibrary.Tests.fsproj reference src/MyNewLibrary/MyNewLibrary.fsproj