How to unit test Connect IQ?

Is there support for unit testing Connect IQ? I could not find anything in the documentation.

Ideally, the solution should have integration with the Eclipse SDK.

+4
source share
2 answers

Support is added to the Connect IQ SDK 2.1, where you need to compile with the -unit-test flag and run with the / t flag

You should annotate your methods with (: test) and return a boolean, which will mean whether the test passed or not (true to pass).

I keep this answer short for now. Learn more: http://developer.garmin.com/blog/post/connect-iq-2-run-no-evil

+2
source

SDK Connect IQ, , , , ...

, , , , :

+1

Source: https://habr.com/ru/post/1608343/


All Articles