Skip to main content Help Control Panel

Rod Morison Software —  Technotes

Home «   R&D «   C++ «   CxxTest setup for the Visual Studio IDE «  

Comment: C++

  Next >>

by Gail on Sep. 5 2008

This article describes exactly what I am trying to do. The problem is that in the post-build step, the tests do not appear to run inside VS.NET 2003. Not only that, I cannot get any output from the tests to appear in the IDE output window whether or not the test fails. The pre-build works fine and it generates an executable that works properly when run in a cmd shell - that is the output from the cxxtest suite is shown properly.

I wrote two simple tests one of which fails: TS_FAIL("ERROR"). The other always passes: TS_ASSERT(1 == 1);

My pre-build command is: cxxtestgen.pl -o MyTest.cpp --runner=ParenPrinter MyTest.h

My post-build command is 3 lines: echo "Run test"

MyTest.exe

echo "Test Completed"

The echoes work fine. Thank you Microsoft

If you have any ideas I would be grateful for the help! Thanks.