Questions tagged [intellitest]

Generate unit tests for your code

IntelliTest explores your .NET code to generate test data and a suite of unit tests. For every statement in the code, a test input is generated that will execute that statement. A case analysis is performed for every conditional branch in the code. For example, if statements, assertions, and all operations that can throw exceptions are analyzed. This analysis is used to generate test data for a parameterized unit test for each of your methods, creating unit tests with maximum code coverage. Then you bring your domain knowledge to improve these unit tests.

When you run IntelliTest, you can easily see which tests are failing and add any necessary code to fix them. You can select which of the generated tests to save into a test project to provide a regression suite. As you change your code, rerun IntelliTest to keep the generated tests in sync with your code changes.

Included only on Visual Studio Enterprise.

49 questions
14
votes
1 answer

Visual studio 2015 Intellitest not working on 64bit projects

I am trying to run intellitest on x64 project (for that matter i even tried to create simple 64x project) public class Program { public static void Main(string[] args) { if(args == null) throw new Exception("test"); …
atikot
  • 4,761
  • 4
  • 26
  • 34
9
votes
1 answer

IntelliTest Vs. Unit Test in Visual studio

Those two features seem similar. I wonder when should I favor one over another?
Rotem Varon
  • 1,597
  • 1
  • 15
  • 32
8
votes
1 answer

How do I specify the factory Intellitest should use for an interface?

With Intellitest you can specify a type for Intellitest to use that fits an interface when generating unit tests, however I have a custom factory I wish to use instead. My custom factory: public static partial class LogicFactory { /// A…
Nick Udell
  • 2,420
  • 5
  • 44
  • 83
8
votes
3 answers

Parameterized Unit Tests with Visual Studio 2015 Intellitest

One feature I've wanted to see in MSTest for a long time has been Parameterized Unit Tests (PUTs). I was excited to hear that Intellitest would be capable of creating said tests. I've started playing with Intellitest, however, and I'm thinking my…
7
votes
3 answers

Visual Studio 2019 IntelliTest Compatibility With .NET Core, .NET Standard?

I'm evaluating Intellitest in the latest version of Visual Studio Enterprise. As far as I can tell from my own attempts and research on various sites, it appears like IntelliTest is only compatible with .NET Framework - not .NET Standard, nor .NET…
James McLellan
  • 217
  • 1
  • 9
6
votes
2 answers

Where to add assertion for each generated test by Intellitest

Here I am going to explain the issue by an example. The original question presents the problem more abstractly. No need to read it though. Update: Question as an example Lets say we have implemented this buggy function for finding the min of…
Isaac
  • 2,332
  • 6
  • 33
  • 59
5
votes
2 answers

Is Intellitest Available for .NET Standard Libraries?

I'm using Visual Studio 2017 15.1 (26403.7). In some of my projects I have a menu to generate tests with IntelliTest, in other projects this menu option does not exist. Specifically in .NET Standard Libraries (at a minimum 1.2 and 1.6) the…
Kevin
  • 9,309
  • 12
  • 44
  • 51
5
votes
0 answers

Cannot produce .cs classes trying to do Intellitests with Visual Studio Enterprise 2015

I try to create Intellitests with Visual Studio Enterprise. So far I had no problem creating them. (Create Intellitest - > Run etc.) This time the .cs class is not generated although I get no errors/warnings at all. Creating Project…
IliasTz
  • 51
  • 3
4
votes
1 answer

Intellitest/Pex is attempting to create IEqualityComparers for private readonly Dictionary field in object

I created an empty class library project containing only this class. public class DictionaryDemo { private readonly Dictionary dictionary = new Dictionary(); public void Add(string key, int value) { …
Sam
  • 410
  • 2
  • 10
3
votes
2 answers

Visual Studio 2015 IntelliTest: The selected type is not visible and cannot be explored

I have the following code : class Program { static void Main(string[] args) { var area = AreaofSquare(5.0); } static double AreaofSquare(double side) { double area; area = Math.Pow(side, 2); …
Null Reference
  • 11,260
  • 40
  • 107
  • 184
2
votes
2 answers

Generate unit tests for my code by using IntelliTest

I found that I can use IntelliTest to generate unit tests for my code. I am using Visual Studio Enterprise 2019, but I don't see this option when I right-click on a method. Should I download something?
Valeri
  • 97
  • 4
2
votes
0 answers

IntelliTest tests not working on async await methods

I'm using Visual Studio Enterprise 2015 and trying to use the feature they call IntelliTest. IntelliTest seems to work fine when testing tradition synchronize methods. However, most of my methods are async and return a Task, which require to be…
palmej2
  • 73
  • 7
2
votes
1 answer

Intellitest integration with existing unit tests

We already had an existing unit test project but Intellitest generates a separate project. Is there any way to integrate Intellitest into our existing test project?
NathanX
  • 135
  • 11
2
votes
1 answer

No 'run IntelliTest' option in VS2015 Enterprise context menu

I am using VS2015 Enterprise and am trying to check out the new IntelliTest feature, but can't find the option anywhere. I created a simple function within one of my project's classes and right clicked the function and there is no 'run intellitest'…
2
votes
1 answer

Intellitest command line invocation

For my academic research i am trying to invoke intellitest from command line. I was using this with Pex older version through (pexwizard and pex commands) and this was generating an html report. I am now using vs 2015 and trying to do something…
AMK
  • 41
  • 2
1
2 3 4