Unmanaged integration of a C ++ testing environment with Visual Studio 2008 (GUI Test runner)

One thing that I like about the Visual Studio Unit Testing Framework is that all unit tests are performed using the IDE, from defining a class to running a test that has a graphical green / red bar that gives the test results.

I use CppUnit and Google Test to test my applications. I managed to integrate both into the Visual Studio IDE, given the text output.

I am wondering if anyone builds a Visual Studio Addin that allows you to run a test from DevStudio and have a graphical test runner to give feedback?

Thanks,

Nick

+6
visual-studio-2008 visual-studio googletest cppunit
source share
2 answers

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

I created a project like "VisualStudioPackage" (VsPackage), which is used to add custom functions to the development environment.

In this project, I wrapped the CppUnit test runner and added a custom test listener, which is used to update statistics in the window (provided by VsPackage) in DevStudio.

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

+1
source share

I have yet to find integration for any project. What some people do in my company is to write their tests in C ++ / cli, which can be run using mstest. This is a little rude, but it is a solution.

0
source share

All Articles