Posted By: Peli de Halleux | Jan 14th @ 11:38 AM | 54,199 Views | 12 Comments
Nikolai Tillmann and Peli de Halleux give a short tutorial on Pex, an automated white box testing tool for .Net. The tutorial is a pair-programming session where they show us how to get started with Pex in Visual Studio, starting from an (untested) piece of C# code:
  • how to use Pex to explore the behavior of any method in your code,
  • how to save the exploration results into a unit test suite,
  • how to improve the generated parameterized unit tests to leverage Pex code exploration engine.

If you want to follow up the steps on your machine as well,

The Research in Software Engineering team (RiSE) coordinates Microsoft's research in Software Engineering in Redmond, USA.
Rating:
1
0
Code Logix
Code Logix
It's in the code.
This is great, automatic unit test generation and complete code coverage!

Dowload it, and try it... It rocks!
Rhapsody
Rhapsody
In Metal We Trust
Awesome! I'm going to try it out as well. Very cool to see that Pex actually uses values inside the function as test values.

Edit: Ok. I've been playing with it for a half an hour and it looks very very very cool!!! 
stevo_
stevo_
Human after all
Is this right that you need a team edition of vs to use pex now? I'm using x64 and it just keeps telling me I need the team editions (I use pro), I used the older versions of pex in pro.
stevo_
stevo_
Human after all
Ah ha! no worries, I'll check back soon! cheers.
Awesome tool. Just experimented with it and already loving it. Keep up the good work!
Microsoft Communities