{ "id": "131311", "key": "ALOY-1043", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "16692", "name": "Alloy 1.7.0", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-17T08:42:49.000+0000", "created": "2014-06-05T19:53:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-12-17T08:42:49.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "To improve our testing, we should have _generated folders (containing generated code for each platform) that can be compared to with each run of the {{jake test:all}} script. \r\n\r\nIt should:\r\n\r\n* Process each project in the test/apps folder tree\r\n* Compile the app for each platform, saving the results to _generated/PLATFORM/alloy/controllers\r\n* Offer a switch ({{--force}}) which if set, will overwrite existing _generated files\r\n\r\nThe test/testgen.js looks to accomplish this for an individual sample app. There's also the partially complete tools/compiles.js that might serve similar purpose.", "attachment": [], "flagged": false, "summary": "Tooling: add script to compile all test apps and add _generated folders", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 288, "state": "closed", "name": "2014 Sprint 25 Tooling", "startDate": "2014-12-08T17:30:22.215Z", "endDate": "2014-12-20T02:30:00.000Z", "completeDate": "2014-12-29T18:24:09.765Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "336380", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR https://github.com/appcelerator/alloy/pull/632\r\n\r\nPull updates tools and docs for creating _generated code. It also includes generated code for all of the test/apps/testing apps.\r\n\r\nFunctional review:\r\n\r\n1. From your Alloy repo directory, create a mock test app with {{node tools/create_test.js foo}} It should output a message directing you to create _generated code.\r\n2. Open the test/apps/testing/foo folder to confirm that the app's files are present, but a _generated folder is not.\r\n3. Run {{node tools/create_generated_code.js testing/foo}} and check the folder. The _generated folder is present now.\r\n4. Run {{jake test:spec\\[compile.js\\] app=testing/foo}} In the resulting output, you should see that \"testing generated code\" is present and passes (in other words, the code is compiled and compared to that in _generated and is found to match).\r\n5. Finally, open tools/README.md to confirm that new instructions for Alloy developers is present.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-12-15T16:51:24.000+0000", "updated": "2014-12-15T16:51:24.000+0000" }, { "id": "336575", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Updated PR removes _generated code containing dates, which are localized and thus won't pass if the reviewer is in a different timezone than the generator. Updated the generation script to bypass known-problem test apps. Updated the README.md file.\r\n\r\nI also added documentation to https://wiki.appcelerator.org/display/pe/Tools+and+techniques#Toolsandtechniques-nodetools and https://wiki.appcelerator.org/display/pe/Alloy+development+process", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-12-16T15:41:47.000+0000", "updated": "2014-12-16T15:41:47.000+0000" }, { "id": "336748", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-12-17T08:42:49.000+0000", "updated": "2014-12-17T08:42:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }