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!
source to share
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.
source to share
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.
source to share