C ++ unit testing framework for z / OS (IBM mainframe)

Does anyone know of a C ++ unit testing framework (like CppUnit , Google Test , etc.) that can be used to write tests on z / OS ?

I do most of my development on Windows with Dignus C ++ compiler which you can use as a cross compiler and generate object code to run on z / OS. I tried to write a sample test using Google Test, but the compiler was unable to compile / link the Google test code. Google Test does not claim to support z / OS, so this was expected. But, it was worth trying!

Thanks a lot for any answers!

+2


source to share


3 answers


Try CPP Unit Lite (by CppUnit). It uses fairly simple C ++ code and there is a good chance it will work on the z / OS compiler.



+2


source


Perhaps you could open a bug report for Google Test and see if they fix it? There is probably an ASCII dependency in the code that caused the test code to fail to compile. Could you dig up the error message generated by the IBM compiler?



+1


source


I know I'm late to the party here, but for anyone interested in C ++ testing frameworks on z / OS, I highly recommend Catch , which IMO easily outperforms all other C ++ testing frameworks I've used. I've been using it on z / OS for about 6 months now, and it's a breath of fresh air. It is very simple and intuitive to use and has support for Behavior Testing Design (BDD) , which is the modern way of writing test cases.

This title alone does not rely on any of the C ++ 11 features that are common when building modern libraries / frameworks on z / OS, since the C ++ compiler has limited C ++ 11 support.

The only nit I can think of is the compilation which takes a while because it is only a header library. But nowhere comes close until the momentum.

+1


source







All Articles