Can Visual Studio 2010 analyze code coverage on F # modules?

Although I ask for this, Visual Studio 2010 does not seem to generate code coverage statistics for my F # modules. Unit tests are Ms tests written in C #, which is why Visual Studio runs initially and runs cleanly. But there seems to be no coverage information created for the tested F # library. Similar C # libraries are parsed.

Did I miss something?

+7
source share
1 answer

This link describes the use of the VS testing system using F #. You do this almost the same as with C #.

The disadvantage is that, apparently, the VS IDE will not automatically pick it up - I believe that you need to run from the command line using mstest .exe.

Edit: Oh, another cool thing with F #, FsCheck , an automatic testing tool for F #, is basically a Haskell Quick Check port. It allows you to specify a program specification in the form of properties that functions or methods must satisfy, and FsCheck checks that properties are stored in a large number of random cases.

also fsunit and fstest

+4
source

All Articles