Reputation: 8199
Is there any support for unit testing Connect IQ applications? I could not find anything on the documentation.
Ideally, the solution should have integration with the Eclipse SDK.
Upvotes: 5
Views: 841
Reputation: 31
The documentation in the Connect IQ SDK as suggested in the other answer is not very elaborate and does not explain in detail how to do proper unit testing, it's just some simple hello world examples...
I wrote a small tutorial that explains how to write unit tests, it's a process that consists of 3 parts:
Upvotes: 2
Reputation: 421
Support is added in Connect IQ SDK 2.1, where you need to compile with --unit-test flag and run with /t flag
You must annotate your methods with (:test) and return a boolean, which would mean whether a test passed or not (true for pass).
I'm keeping this answer short at the moment. See more: http://developer.garmin.com/blog/post/connect-iq-2-run-no-evil
Upvotes: 2