Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unit test Connect IQ?

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.

like image 524
Sebastian Kreft Avatar asked Sep 27 '22 16:09

Sebastian Kreft


1 Answers

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

like image 170
Madis Avatar answered Oct 03 '22 18:10

Madis