Reputation: 171
I have inherited a huge c++ codebase with some integration tests. This is a critical system which feeds data to a lot of downstream systems. As the tests are very unreliable our team is not able to push changes confidently.
We want to introduce some tests in the system but most of the developers have Java background. What options do we have ?
1) Learn C++
2) Use JNI : Not sure how easy that is
Upvotes: 6
Views: 562
Reputation: 533710
I would suggest you try JNA which doesn't require you to write C or C++ code. Its slower than JNI, but for tests that is unlikely to matter.
Upvotes: 0
Reputation: 10820
Using JNI adds another layer of complexity and still you will learn C++ - I wouldn't recommend it if you don't want to use C++.
Depending on what the C++ system does you can choose different testing strategies. In my experience I had a system which was responsible for data processing and all the data was sent via network. In this case the tests were done in python:
My case was a lucky one since the communication was done via a network connection (we could literally use whatever language we wanted).
If you cannot use anything else but C++ I think you will have to do it in C++ (and not Java + JNI + C++).
Upvotes: 2