{ "id": "159461", "key": "TIMOB-23188", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-04-11T11:44:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:29.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "Both the Titanium Mobile and Alloy repositories have scripts to do automated run-time tests, but both in different ways and intertwined with their *.travis.yml*, jake and other scripts.\r\n\r\nWe need this for other repositories as well. One example is sample apps that we'd like to automatically test against the latest SDK versions so we need which ones need fixing.\r\n\r\nWe should create an NPM package that we can use in any repo, both locally and in CI. This package should also come with a CLI or bash script to set up the environment on Travis so that in the end we can do something like:\r\n\r\n*package.json*\r\n\r\n{code:js}\r\n \"scripts\": {\r\n \"test\": \"ti-test run --project ./test\"\r\n }\r\n{code}\r\n\r\nor as part of an existing test script:\r\n\r\n{code:js}\r\nvar test = require('ti-test');\r\ntest.run({\r\n project: 'to/my/test',\r\n // alloyApp: 'to/my/alloy/app/folder/without/a/project'\r\n});\r\n{code}\r\n\r\nand then run:\r\n\r\n{code}\r\nsudo npm i -g ti-test\r\nnpm test\r\n{code}\r\n\r\nor via *.travis.yml*\r\n\r\n{code:yml}\r\nlanguage: objective-c\r\nosx_image: xcode7.3\r\njdk:\r\n - oraclejdk7\r\ninstall:\r\n - sudo npm install -g ti-test\r\n - sudo ti-test setup --sdk latest # which would install Titanium CLI & (given) SDK, Android SDK etc.\r\nscript:\r\n - npm test\r\n{code}\r\n\r\nIdeas [~cng], [~ingo], [~cbarber]?", "attachment": [], "flagged": false, "summary": "Package script for automated tests as stand-alone library", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }