Перейти к файлу
Jakub Jareš bb36956881
Add top-level packages so vstest can detect tests (#272)
2022-11-08 14:00:42 +01: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 Revert "Merge pull request #256 from dotnet/dev/amauryleve/version-props" 2022-10-03 16:02:31 +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 20221104.2 2022-11-07 13:11:45 +00:00
template_feed Add top-level packages so vstest can detect tests (#272) 2022-11-08 14:00:42 +01:00
test Move Playwright to the same net8 project as other templates (#267) 2022-10-31 13:27:27 +01: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 Enabled Code QL for the official build only 2022-11-07 15:56:59 +01:00
build.cmd Move build for Net Core templates to Arcade (#37) 2019-01-09 01:19:15 +05:30
build.sh Update build.sh 2022-10-21 19:37:36 +05:30
global.json Update dependencies from https://github.com/dotnet/arcade build 20221104.2 2022-11-07 13:11:45 +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.