Visual studio 2017 create Intellitest not working

1.2k views Asked by At

Note: Answering my own problem for future developers.

I right click a Method > Create Intelli Tests.

I choose the MSTestv2, chose the Project.Test project, click OK and see the following output:

Processing Proj.API
Scanning assembly references in Proj.API Applying
template AssemblyInfo to Proj.API Applying template Tests to Proj.API
test stubbing ProductController -> ProductControllerIntelliTest
generating method bodies
flushing generated code

Unfortunately the Test.cs file is NOT created.

I've set all projects x86 and that doesn't make a difference.

Does anyone know why this doesn't work?

1

There are 1 answers

0
Jeremy Thompson On

For some reason I had to specify a New Project for the Intelli Tests.

Creating new IntelliTests in the new project work, however they cant be added to the standard Test Project.

Hopefully someone else knows why.