How do I generate "Smart Unit Tests" with Visual Studio 2015 Preview?
Asked Answered
P

2

17

How do you generate "Smart Unit Tests*" with Visual Studio 2015 Ultimate Preview?

*Microsoft's S. Somasegar announced "Smart Unit Tests" (Under the heading 'productivity') for Visual Studio 2015. This feature, based on Pex, uses code analysis to generate unit tests.

Phenolic answered 12/11, 2014 at 20:38 Comment(1)
I can't find docs on it yet, but it appears that it works in C# by right clicking on a class or method name. I can't find it in VB.Net... probably not implemented for VB?Phenolic
K
14

Here's the link to msdn documentation: Generate smart unit tests for your code

Kenna answered 13/11, 2014 at 1:49 Comment(4)
The documentation link you provided is useful, exactly what I needed. For those who want the TLDR version from the docs: "2. Right-click in a method in your code and choose Smart Unit Tests to generate unit tests for all the code paths in your method."Phenolic
I just discovered the "smart Unit Tests" option is not available from directly within a unit test project. Once I right-clicked on a method in another project, I could see the option.Visayan
Alex: yes, this "smart test" option is available from the target class / method, not the unit test project. This feature will auto-generate unit tests for the target method and place them into a unit test project.Phenolic
Does anyone know if xUnit will be supported in VS 2015 RC ?Femmine
O
7

As of VS2015 Ultimate Preview we have not enabled this for VB.

Oilcan answered 16/11, 2014 at 7:46 Comment(1)
Apologies for reviving an old thread -- do you think this will ever be enabled for VB.NET?Devlen

© 2022 - 2024 — McMap. All rights reserved.