Search code examples
c#wpfmvvmcode-coverageautotest

WPF MVVM auto GUI test - Code coverage


Thanks to a full WPF MVVM design, I managed to record all commands and view events (throw view model, like selected objects, shown objects ids, ...) in XML files during manual scenarii testing. Then it's easy to replay the recorded scenari :)

It works fine and permits to quickly check most of my code - I'm proud of it and so excited about .Net ! ;o)

But, how could I check my code coverage ?

I'm not using in this case Unit Testing, just running the app in Debug mode but I'd like to know which code is tested/untested.

Any idea ?

Thanks, Nd


Solution

  • I finally found a great article thanks to a friend at code project :

    https://www.codeproject.com/articles/590346/codepluscoverageplusforplusregressionplustestsplus

    Thanks to snehal harawande for its great article on scenarii testing for FREE. I did use .Net 4.5.2 64 bits (Add "x64" on first batch line argument) and I did import the result in VS Enterprise. It's perfect :)

    Thanks all