Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unmanaged c++ testing framework integration with Visual Studio 2008 (GUI Test runner)

One thing I like about Visual Studio Unit Testing Framework is that all the unit testing is done from withing the IDE, from class definition to running the test having a graphical green/red bar giving test results.

I'm using both CppUnit and Google Test to test my applications. I quite succeeded integrating both in Visual Studio IDE, given a text output.

I'm wondering if anybody build a Visual Studio Addin allowing to both run the test from within DevStudio and having a graphical test runner to give the feedback?

Thanks,

Nic

like image 932
Nicolas Avatar asked Mar 15 '11 19:03

Nicolas


1 Answers

I have finally found an interesting way to do what I was looking for.

I created a project of the kind "VisualStudioPackage" (VsPackage) that is used to add custom functionality to the development environment.

In that project, I wrapped the CppUnit test runner and add a custom test listener that is used to refresh the stats in a Window (provided in by the VsPackage) in DevStudio.

I also added a custom command to start unit testing my project.

like image 140
Nicolas Avatar answered Sep 30 '22 19:09

Nicolas