Friday, October 31, 2014

SOME NEW TECHNOLOGIES FOR VISUAL STUDIO

  1. NCrunch for VS
This software provides an inbuilt ADDON for VS for automatically executing your defined unit tests on your code.
How it works:
  • You create your program
  • You create your unit tests
  • Ncrunch automatically detects unit test methods and keeps executing in memory
  • As soon as you modify something in your program and while you are writing the buggy code, ncrunch on that line itself will give you a prompt that, with this code change this unit test method is breaking
  1. Microsoft Pex
This is more intelligent version of ncrunch you can say. This is more interesting too J. It’s a VS add on kind of software from Microsoft that once you install, gives you an option in your code with any method as “create PEX possible unit tests for this method”. Once selected, intelligently it would create n number of all posibble unit test methods for your code with all possible combinations of parameters that you have defined for your method. Actually you can play around without installing anything on service URL they have given.
How it works:
  • You create your program
  • You right click on method name and select “create pex unit test methods”
  • Once selected, it will create all possible combination of unit test methods for your method with all possible variations and will also execute and will let you know the results

No comments:

Post a Comment