{ "id": "169447", "key": "TIMOB-25093", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-06T15:09:28.000+0000", "created": "2017-08-11T16:21:11.000+0000", "epic": { "id": 169441, "key": "TIMOB-25087", "name": "Mocha test failures", "summary": "Mocha test: Address unit test failures", "color": { "key": "color_4" }, "done": false }, "priority": { "name": "None", "id": "6" }, "labels": [ "failure-reviewed" ], "versions": [], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-04T14:35:15.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": [], "description": "Titanium.Filesystem.File #createFile() and #deleteFile() please investigate the failure. \r\rPlease use https://github.com/ewanharris/titanium-mobile-mocha-suite/tree/TIMOB-24816 to find the related test\rYou can use https://github.com/ewanharris/mocha-test to quickly debug (most) mocha tests)", "attachment": [], "flagged": false, "summary": "Windows: Mocha test Titanium.Filesystem.File #createFile() and #deleteFile() test failure", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "427166", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Test case is incorrect, resourcesDirectory should be read only. So we shouldn't write here (unless we're testing that it's read only), test case should use applicationDataDirectory\r\n\r\n\r\n{code}\r\nit('#createFile() and #deleteFile()', function () {\r\n\t\tvar newFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'myfile');\r\n\t\tshould(newFile.exists()).be.false;\r\n\t\tnewFile.createFile();\r\n\t\tshould(newFile.exists()).be.true;\r\n\t\tnewFile.deleteFile();\r\n\t\tshould(newFile.exists()).be.false;\r\n\t});\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-24T15:06:07.000+0000", "updated": "2017-08-24T15:06:07.000+0000" }, { "id": "427168", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Raises the question of why this isn't failing iOS and Android", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-24T15:10:54.000+0000", "updated": "2017-08-24T15:10:54.000+0000" }, { "id": "427474", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1090", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-01T07:24:54.000+0000", "updated": "2017-09-01T07:24:54.000+0000" }, { "id": "427481", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~kiguchi] Sorry I think I forgot to give you a heads up on these. I've been working on and off now to get Windows using titanium-mobile-mocha-suite, you can see what I've got done so far over at TIMOB-24816. 6.2.0 took precedence but I'm hoping to get back on it soon. My current plan is \r\n\r\n- finish up reviewing all the failures\r\n- finish my PR and get it merged into titanium-mobile-mocha-suite\r\n- update NMocha with the contents of that to get covered in the short term\r\n- bring in a similar process to titanium_mobile where we pull down titanium-mobile-mocha-suite and perform the tests in CI against that\r\n\r\nWhat do you think of that?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-01T09:10:49.000+0000", "updated": "2017-09-01T09:10:49.000+0000" }, { "id": "427529", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] That sounds good to me (y) I haven't checked your PR for titanium-mobile-mocha-suite...I will keep reviewing those failures and will push fixes (in titanium_mobile_windows) when necessary.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-01T23:48:52.000+0000", "updated": "2017-09-01T23:48:52.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }