Current status: Templates are missing from .NET Core
I have come to the conclusion that these are missing (among other non-test templates see Item templates are missing).
I have now raised a seperate issue on GitHub to make these test templates available to .NET Core projects and up to the level where the .NET Framework templates are. You can follow the progress here: Unit test templates missing from .NET Core Unit test project
Hopefully this will be helpful to someone missing these templates in .NET Core.
For clarity this is what I've tried
- Trying multiple installs of Visual Studio 2017 (on different computers)
- Asking colleagues to reproduce same behaviour
- Ticking variety of different options on the Visual Studio installer
- Plenty of Googling
The Problem:
If I Add a New "MSTest Test Project(.NET CORE)" to my solution, then right click the newly generated projected goto "Add" > "New Item" the "Add New Item" window is displayed, however I cannot find the test templates for adding a unit test (2nd Screenshot shows these templates, this is a .NET Framework project) At the moment I am having to Copy and Paste a current unit test file and then rename it.
This is only an issue with .NET CORE test projects.
Have tried the following:
- Gone through the Visual Studio installer making sure there is nothing missing
- up to date with VS2017 updates
- updated the MSTest Adapter NUGET packages
Note: This person (Unit testing features missing for .NET Core in VS 2019 and Visual Studio Installer?) is also getting the same issue as I am but with VS2019!
Just to confirm: Where is Create Unit Test in VS 2017? is NOT the same issue. This is the "Create Unit Test" context menu.

