ev3dev-lang-cpp icon indicating copy to clipboard operation
ev3dev-lang-cpp copied to clipboard

Would you be interested in working UTs which could be run on host system?

Open biocomp opened this issue 5 years ago • 1 comments

I did a bit of refactoring here, and made UTs to run in host system. I injected mock system via a base class (which uses virtual calls) instead of macros and FAKE_SYS file generation: https://github.com/biocomp/ev3dev-lang-cpp2/blob/master/tests/api_tests.cpp.

I messed with cmake files and headers quite a lot, I guess I can simplify the change if there's an interest.

Also, there's a bug in the cache which I've found with the tests.

biocomp avatar Mar 17 '20 23:03 biocomp

Yes, please open a PR with the changes. The fix for the caching bug should probably go to a separate PR.

ddemidov avatar Mar 19 '20 04:03 ddemidov