So I just created a new barrel.
Then added a file "Tests.mc", with the following content:
(Am I doing it correctly? I tried following https://developer.garmin.com/connect...ble-libraries/ but this is the first time I've added some tests to an connect-iq app)
module MatchpointBarrel {
// Unit test to check if 2 + 2 == 4
(:test)
function myUnitTest(logger) {
var x = 2 + 2; logger.debug("x = " + x);
return (x == 4); // returning true indicates pass, false indicates failure
}
// Unit test to check if 2 + 2 == 4
(:test)
function myUnitTestTwo(logger) {
var x = 2 + 2; logger.debug("x = " + x);
return (x == 5); // returning true indicates pass, false indicates failure
}
}When I try to run it with "Run No Evil", I get:
Beginning execution of Run No Evil framework.
Building project for 'fr235'... SUCCESS.
Running tests as 'fr235'.
Executing tests for entire project.
/Users/davideverlof/Repo/garmin/connectiq-sdk-mac-3.0.7-2018-12-17-efeb3e3/bin/monkeydo /Users/davideverlof/eclipse-workspace/MatchpointBarrel/bin/test_fr235_MatchpointBarrel.prg fr235 -t
An error occurred executing the Run No Evil frameworkIf I run it on the command-line, it's just quiet:
$ barrelbuild -o bin/MatchpointBarrel.barrel -f monkey.jungle
$ barreltest -w -y ~/repo/garmin/connectiq-sdk-mac-3.0.7-2018-12-17-efeb3e3/keys/developer_key.der -o bin/MatchpointBarrel.barrel -f monkey.jungle -d fenix3_hr -t