Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
biocomp opened this issue Mar 17, 2020 · 1 comment

Comments

@biocomp
Copy link

biocomp commented Mar 17, 2020

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.

@ddemidov
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants