{ "id": "105165", "key": "TIMOB-11813", "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": "2012-11-17T09:00:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "planning-3.3.0", "rock_solid" ], "versions": [], "issuelinks": [ { "id": "34322", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "123564", "key": "TIMOB-15949", "fields": { "summary": "Tooling: Automate Puff Tests", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:49.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "As part of our goal to determine code coverage, we wish to generate Mocha tests for the complete Titanium Mobile API.\r\n\r\nNote that many of these tests might exercise UI components, and mocha is non-visual. This is acceptable--we merely want the Mocha test her to confirm that there isn't an exception being thrown by the code, not that the result is actually graphically correct. We will use a different mechanism (likely something like SOASTA) for that path.\r\n\r\n* Given a pointer to either the source code or some documentation for a platform, generate a suite of Mocha tests that exercises the APIs using a permutation of common parameters.\r\n* If parameter values are complex (i.e. they require setup, like creating a window or other such item), allow for a way to create dummy objects, perhaps with some helper methods in a referenced library\r\n* The end result of the generation will be a set of files suitable for checking into source control.\r\n* The tool should be able to be re-run against the API from time to time to generate new tests as new APIs are added. The existing tests should be commented or noted in such a way so that the new tests can be added to the existing files", "attachment": [], "flagged": false, "summary": "Create Mocha test generation tool", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "394318", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This sounds like vapor.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T23:57:41.000+0000", "updated": "2016-08-24T23:57:41.000+0000" }, { "id": "394341", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's actually not. We should be able to generate a test scaffold from our existing documentation. It should be mocha tests instead, but same idea.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-25T03:48:24.000+0000", "updated": "2016-08-25T03:48:24.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }