Gen Tools Automated Unit Tests for .NET

Looking to get an automatic testing tool (voting should bring good results)

The perfect tool:

  • Eliminate the need to provide a set of values ​​for the method.
  • use methods such as Interactive Testing, where the code is examined to determine which values ​​the entire path code should execute. those. unit tests for a method are determined by code complexity

For example, if a method checks that the integer argument is 123, at least 2 unit tests are generated: one where this argument is 123, and the other where it is absent.

For Java, I understand that these are some parameters, but not .NET.

  • Testgen4j
  • Agitarone

Heard about Pex - for .NET from Microsoft Research, but it has a non-commercial license

thanks

+5
source share
3 answers

Pex allows you to parameterize unit testing and uses dynamic symbolic execution (some kind of automatic search testing) to generate input data. Pex can understand the semantics of MSIL, i.e. Any call to a managed method. In the 123 example, Pex will find both tests.

It allows developers to write parameterized unit tests - so that it fully fits into the test first style of development.

Pex MSDN. http://research.microsoft.com/pex

pex-:)

+3

, - . ? - . - .

+2

, , Randoop.

Randoop Java (http://mernst.imtqy.com/randoop/) .NET(https://github.com/abb-iss/Randoop.NET).

Randoop , Sun IBM JDK, Microsoft.NET.

0
source

All Articles