This problem:
- I like unit tests.
- I develop software for connecting to external systems, which quite often and often use the C ++ library.
- The return of these systems is not deterministic. Data is received during operation, but making sure that all this is correctly interpreted is difficult.
How can I check this correctly?
I can run the unit test, which makes the connection. Unfortunately, it will process the data stream of life. I can say that I run the test for 30 or 60 seconds before disconnecting, but getting the ccoverage code is not possible - I'm just not going to get all the code codes EVERYTHING FORWARD (code error codes are rarely executed). I also cannot claim every result. Depending on the time of day, we are talking about 20,000 data callbacks per second - all of them cannot be defined well enough to check each of them for consistency. Tantalizing? Well, that would leave me testing the empty shell myself, because the code that handles the events is basically a proven case, and in many cases we are talking here about the COMPLEX c level structure - it's hard to have mocking frameworks,which integrate from Csharp to C ++
Any idea? I cannot refuse to use unit tests for this part of the application.
source
share