Перейти к файлу
Codrin-Victor Poienaru a47740f5f3
Merge pull request #242 from dotnet/dev/copoiena/update-to-17.2.0
Update to 17.2.0
2022-08-09 11:03:43 +03:00
.github Add `.github/fabricbot.json` 2022-06-28 22:08:47 +00:00
Documentation/MigrationPlan Updating the timeline for move to Arcade. 2019-01-21 15:33:21 +05:30
Templates Fixed nupkg version 2022-08-04 16:31:10 +02:00
WizardExtensions Fixed mstest nuget reference 2022-08-08 14:08:29 +02:00
eng Update dependencies from https://github.com/dotnet/arcade build 20220729.10 2022-08-01 12:16:59 +00:00
template_feed Removed support for netcoreapp 2.1 and 3.0 2022-08-08 16:28:48 +02:00
test Fixed acceptance tests 2022-08-09 09:09:41 +02:00
.editorconfig Initial move of test content to a new repository 2018-06-14 11:08:51 -07:00
.gitattributes Initial move of test content to a new repository 2018-06-14 11:08:51 -07:00
.gitignore Update to 17.1.0 (#229) 2022-04-06 12:59:41 +00:00
CODE-OF-CONDUCT.md Link Code of Conduct 2020-04-02 14:28:55 -07:00
Directory.Build.props Set copyright and package license 2019-02-20 18:09:20 -08:00
Directory.Build.targets Move build for Net Core templates to Arcade (#37) 2019-01-09 01:19:15 +05:30
LICENSE.txt Enable source-build with arcade 2021-02-10 11:23:57 -05:00
NuGet.config enable <UsingToolTemplateLocalizer> 2022-01-26 15:30:05 +01:00
README.md Update README.md (#230) 2022-04-06 14:49:33 +02:00
azure-pipelines.yml Trigger CI for rel/* (#216) 2022-01-14 15:01:43 +01:00
build.cmd Move build for Net Core templates to Arcade (#37) 2019-01-09 01:19:15 +05:30
build.sh Enable source-build with arcade 2021-02-10 11:23:57 -05:00
global.json Update dependencies from https://github.com/dotnet/arcade build 20220729.10 2022-08-01 12:16:59 +00:00
test.cmd Change AcceptanceTests naming to allow arcade detect that this is a test project by naming convention. 2020-08-06 09:49:28 +02:00

README.md

Overview

This repository contains test templates that are consumed by dotnet new. The templates are C#, F# and VB languages; for MSTest, NUnit and XUnit testing frameworks. It also contains classic .NET Framework and Universal Test templates for C# and VB.

Usage

You can create new test project with dotnet new mstest, dotnet new nunit, or dotnet new xunit. Full documentation for dotnet new is here. And here is documentation for each template: mstest or xunit, nunit.

Contributing

There are 2 main areas in this repository:

  • template_feed contains the .NET templates that are inserted into dotnet/installer.
  • Templates, WizardExtensions contain "legacy" templates for .NET Framework test projects in VisualStudio.

template_feed contains all the templates from the oldest version of .NET to the newest. We build all of these templates, but might not ship all of them. If you are doing bigger changes please make them in bulk to all the templates.

Acquire

  • Fork this repository.
  • Clone the forked repository to your local machine.
    • main is our default branch. It should be checked out for you automatically.
    • Create topic branch to hold your change e.g. git checkout -b "update-mstest".
    • Make your changes, commit, and make PR that targets our main branch.

Build & Run

  • Open up a command prompt and navigation to the root of your source code.
  • Run the build script appropriate your environment.
  • When running the build script creates the nuget packages for net core test templates and vsix for classic test templates.
  • The build produces the template NuGet packages currently has a dependency on nuget.exe.
  • Because of this, those that wish to install using the template NuGet packages will need to be on Windows in order to produce the appropriate assets.

Test

  • Users can test the dotnet core templates that reside in the templates_feed folder by running the test script test.cmd
  • Note: Please make sure you have run the build script before you run the test script.