{"action":"created","issue":{"url":"https://api.github.com/repos/alex-seville/blanket/issues/470","labels_url":"https://api.github.com/repos/alex-seville/blanket/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/alex-seville/blanket/issues/470/comments","events_url":"https://api.github.com/repos/alex-seville/blanket/issues/470/events","html_url":"https://github.com/alex-seville/blanket/issues/470","id":56452255,"number":470,"title":"Sets up to run the tests, but doesn't actually run them.","user":{"login":"rickhedin","id":5522570,"avatar_url":"https://avatars.githubusercontent.com/u/5522570?v=3","gravatar_id":"","url":"https://api.github.com/users/rickhedin","html_url":"https://github.com/rickhedin","followers_url":"https://api.github.com/users/rickhedin/followers","following_url":"https://api.github.com/users/rickhedin/following{/other_user}","gists_url":"https://api.github.com/users/rickhedin/gists{/gist_id}","starred_url":"https://api.github.com/users/rickhedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickhedin/subscriptions","organizations_url":"https://api.github.com/users/rickhedin/orgs","repos_url":"https://api.github.com/users/rickhedin/repos","events_url":"https://api.github.com/users/rickhedin/events{/privacy}","received_events_url":"https://api.github.com/users/rickhedin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-03T23:00:45Z","updated_at":"2015-02-27T18:55:11Z","closed_at":null,"body":"Hi, Alex.  I've spent all day trying to get Blanket running on our project.  I found an article and repo of a working project similar to ours, but I still have problems.  http://www.fluidbyte.net/blanket-mocha-with-requirejs-and-grunt/\r\n\r\nAt present, I can see by Chrome's console that the file in question is being instrumented.  controller.js  I have set breakpoints and I know that the test file is being called.  The describe() function is being called; the it() functions are being called.  But the test runner never calls the callback function of the it() functions.  If I comment out the final <script src=... line in the test.htm file, the one that includes blanket_mocha.js, the tests run normally. \r\n\r\nDo you have an insight into what's going on? \r\n\r\nFrom the Chrome console:\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/ASP.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/ASP.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/controller.js\".blanket_mocha.js:5320 _blanket.extend.utils.getFileblanket_mocha.js:5343 requirejs.loadrequire.js:1647 context.loadrequire.js:828 Module.loadrequire.js:818 Module.fetchrequire.js:848 Module.checkrequire.js:1151 Module.enablerequire.js:1519 context.enablerequire.js:1136 (anonymous function)require.js:132 (anonymous function)require.js:57 eachrequire.js:1098 Module.enablerequire.js:782 Module.initrequire.js:1178 callGetModulerequire.js:1552 context.completeLoadrequire.js:1679 context.onScriptLoad\r\nblanket_mocha.js:5224 BLANKET-Attempting instrument of:js/controller.js\r\nblanket_mocha.js:4132 BLANKET-Instrumented file:  js/controller.js\r\nblanket_mocha.js:5230 BLANKET-instrument of:js/controller.js was successfull.\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/view.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/view.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/components/sinonjs/sinon.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/../components/sinonjs/sinon.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/Ground.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/Ground.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/ODLatLon.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/ODLatLon.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/cookieManager.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/cookieManager.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/setCookies.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/setCookies.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/messages.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/messages.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/jquery.jsonp.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/jquery.jsonp.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/validator.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/validator.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/jquery.cookie.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/jquery.cookie.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/mapgui.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/mapgui.js\r\njquery.cookie.js:11 Used amd clause.\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/jqueryui.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/jqueryui.js\r\nblanket_mocha.js:5320 XHR finished loading: GET \"http://localhost:3000/js/lib/OpenLayers/OpenLayersDisableZoomBarDrag.js\".\r\nblanket_mocha.js:5251 BLANKET-Loading (without instrumenting) the file:js/lib/OpenLayers/OpenLayersDisableZoomBarDrag.js\r\nblanket_mocha.js:5423 waiting for blanket...\r\n\r\n\r\nFrom the file test.htm:\r\n```` html\r\n<html>\r\n<head>\r\n\t<script>\r\n\t\tvar DEVICE = 'laptop';\r\n\t\t            : \r\n\t</script>\r\n\t<meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\">\r\n\t<title>Test Runner</title>\r\n\t<!-- <link rel=\"stylesheet\" href=\"test/css/mocha.css\" type=\"text/css\" charset=\"utf-8\" /> -->\r\n\t<link rel=\"stylesheet\" href=\"node_modules/mocha/mocha.css\" type=\"text/css\" charset=\"utf-8\" />\r\n</head>\r\n<body>\r\n\t<div id=\"mocha\">X/div> <!-- Required for browser reporter -->\r\n\r\n\t<!-- config mocha -->\r\n\t<script src=\"components/jquery/jquery.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n\t<!-- <script src=\"test/js/mocha.js\" type=\"text/javascript\" charset=\"utf-8\"></script> -->\r\n\t<script src=\"node_modules/mocha/mocha.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n\t<script src=\"test/js/chai.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n\t<script src=\"test/js/chai-as-promised.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n\t<script type=\"text/javascript\" charset=\"utf-8\">\r\n\t\t// This will be overridden by mocha-helper if you run with grunt\r\n\t\tmocha.setup('bdd').globals(['_', '$', 'jQuery*']);\r\n\t</script>\r\n\r\n\t<!-- include the app and test code as bundled by require -->\r\n\t<!-- changed components/js/require.js to js/require.js -->\r\n\t<script data-main=\"js/test\" src=\"js/require.js\"></script>\r\n\r\n\t<!--\r\n\t<script src=\"test/js/blanket.js\" data-cover-adapter=\"test/js/blanket_mocha.js\" data-cover-only=\"//js\\/.*\\.js/\"></script>\r\n\t-->\r\n\t<!--\r\n\t<script src=\"test/js/blanket.js\" data-cover-adapter=\"test/js/blanket_mocha.js\" data-cover-only=\"js/controller.js\" data-cover-flags=\"debug\"></script>\r\n\t-->\r\n\t<script src=\"test/js/blanket_mocha.js\" data-cover-only=\"js/controller.js\" data-cover-flags=\"debug\"></script>\r\n\r\n\t<div id=\"workDiv\">\r\n\t</div>\r\n\r\n</body>\r\n</html>\r\n````\r\nRegards, Rick"},"comment":{"url":"https://api.github.com/repos/alex-seville/blanket/issues/comments/76450354","html_url":"https://github.com/alex-seville/blanket/issues/470#issuecomment-76450354","issue_url":"https://api.github.com/repos/alex-seville/blanket/issues/470","id":76450354,"user":{"login":"rickhedin","id":5522570,"avatar_url":"https://avatars.githubusercontent.com/u/5522570?v=3","gravatar_id":"","url":"https://api.github.com/users/rickhedin","html_url":"https://github.com/rickhedin","followers_url":"https://api.github.com/users/rickhedin/followers","following_url":"https://api.github.com/users/rickhedin/following{/other_user}","gists_url":"https://api.github.com/users/rickhedin/gists{/gist_id}","starred_url":"https://api.github.com/users/rickhedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickhedin/subscriptions","organizations_url":"https://api.github.com/users/rickhedin/orgs","repos_url":"https://api.github.com/users/rickhedin/repos","events_url":"https://api.github.com/users/rickhedin/events{/privacy}","received_events_url":"https://api.github.com/users/rickhedin/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T18:55:11Z","updated_at":"2015-02-27T18:55:11Z","body":"I talked to Alex Seville by e-mail.  Apparently, certain versions of mocha and blanket work together, and certain versions don't.  \r\n\r\nAlex sent me this: \r\n\r\n    This test:\r\n    https://github.com/alex-seville/blanket/blob/master/test/mocha-browser/adapter.html\r\n\r\n    is using https://github.com/alex-seville/blanket/blob/master/package.json#L42\r\n\r\n    You could compare your tests against that one to see if there's a difference.\r\n\r\n(I appreciate his spending time giving me guidance.)  I tried his suggestions, and then sent him this: \r\n\r\n    The files in your git repository don’t seem to be the same as the files one gets by installing the same versions using npm. \r\n\r\n    When I used the files npm gave me, I got the same non-working behavior I had been getting.  When I copied the four relevant files from your repository, everything worked.  Most egregious is that the blanket.js file is internally labeled 1.1.5 in both cases, but the files are different as shown by winmerge.\r\n\r\nSo I guess the conclusion is that the npm files are not correct.  Measuring them against the files in the blanket repository.  And the internal version number of the blanket.js file is not a good guide to what version the file is. \r\n\r\nI don't know what to do about that.  But I am putting a note here, in hopes that the next guy has a shorter path from \"What the heck\" to \"Oh, I see.\"\r\n"}}