CUTE test results are empty

Added by Peter Brüning over 2 years ago

Hello,

I use Win7 64bit with Eclipse Juno and try to integrate CUTE into the IDE. The Tests can be compiled and executed, but the information is just shown in the console-view. The CUTE Test Result view is empty. I tried this solution with the MinGW compiler, which works: http://www.cute-test.com/issues/26

Since I have to use the Mirosoft Visual C++ Compiler I tried to transfer this solution on the other compiler, which failed. Is there any solution for the Visual C++ Compiler?

Thanks for all helpful comments!


Replies (3)

RE: CUTE test results are empty - Added by Thomas Corbat over 2 years ago

Hello

Unfortunately, CUTE has not been released for Juno. It could be an issue regarding this.

For having a better understanding what did you exactly do?

I've tried to reproduce your problem using the following steps:
- Installed a CDT 8.2 with Visual C++ Support
- Launched it in a cl-aware environment (From a Visual Studio 2010 developer console)
- Added a new CUTE project including the boost headers
- Compiled the project
- Run the exe

From the default project i received the following output on the console:

..\src\Test.cpp(6) : testcase failed: start writing tests in thisIsATest

Did you observe the same?

That is not enough for CUTE, somehow the test framework key elements are missing. I'll try to figure out why.

Regards
Thomas

RE: CUTE test results are empty - Added by Thomas Corbat over 2 years ago

I've figured out the problem. As the CUTE headers can be used for visual studio as well, the test result parser expects a different output. The headers recognize the current environment as visual studio due to the compiler. Thus the output is generated as if CUTE run in visual studio. In the header file ide_listener.h the vstudio_listener is set. If you change the code there it should be a feasible workaround.

Uncomment the following lines in ide_listener.h:

//#if defined(__GNUG__)
typedef eclipse_listener ide_listener;
//#else
//typedef vstudio_listener ide_listener;
//#endif

It is just a workaround, but it should help.

Could you let me know if it worked?

Thanks
Thomas

RE: CUTE test results are empty - Added by Peter Brüning over 2 years ago

Hi Thomas,

this works like a charm! Thank you very much!

Peter

(1-3/3)