I use custom Docker image with Connect IQ in order to automate builds. Is there a way to launch tests for Connect IQ project in headless mode inside Docker image? It appears that simulator is necessary to run tests, so can it work without UI?
I use custom Docker image with Connect IQ in order to automate builds. Is there a way to launch tests for Connect IQ project in headless mode inside Docker image? It appears that simulator is necessary to run tests, so can it work without UI?
It has been a long time, but I was able to setup an image to build and run tests. You need to be able to launch the simulator, and then you run the monkeydo script to run the tests.
The docs for the command…
Yes, it seems to be a long time. Is there a chance that you could provide Docker images (on Docker Hub) for the SDK? Or at least direct links for downloading different versions of Connect IQ SDKs - I…
I have no idea what a Docker Image is, and I'm guessing you are talking about Run No Evil.
An app actually runs in the sim, so yes, you need the simulator. The sim is the "simulated VM" that runs the code.
Docker is like a VM, but with some perks. Docker image is, basically, a file. It can be launched as a Docker container. In my case I have an image with Ubuntu and Connect IQ SDK. This setup happens to have no desktop environment, so my question was whether the simulator can be launched in such an environment.
When trying to launch the simulator in Docker I get an error about libusb missing, so I guess I'll have to resolve missing lib errors and then see what happens. ¯\_(ツ)_/¯
It has been a long time, but I was able to setup an image to build and run tests. You need to be able to launch the simulator, and then you run the monkeydo script to run the tests.
The docs for the command line build (monkeyc) and run (monkeydo) tools can be found in the programmer's guide here:
https://developer.garmin.com/connect-iq/programmers-guide/getting-started#basiccommands
Yes, it seems to be a long time. Is there a chance that you could provide Docker images (on Docker Hub) for the SDK? Or at least direct links for downloading different versions of Connect IQ SDKs - I would gladly create the corresponding Dockerfile's for the Docker images.
Having Docker images would certainly help build automation in Github or Azure Devops.
The SDK and Devices are installed/updated using the SDK manager. (it's GUI tool) One or both can change every few weeks.