{"action":"created","issue":{"url":"https://api.github.com/repos/barrysteyn/node-scrypt/issues/116","repository_url":"https://api.github.com/repos/barrysteyn/node-scrypt","labels_url":"https://api.github.com/repos/barrysteyn/node-scrypt/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/barrysteyn/node-scrypt/issues/116/comments","events_url":"https://api.github.com/repos/barrysteyn/node-scrypt/issues/116/events","html_url":"https://github.com/barrysteyn/node-scrypt/issues/116","id":133899157,"number":116,"title":"Unable to run tests","user":{"login":"BrandonZacharie","id":27306,"avatar_url":"https://avatars.githubusercontent.com/u/27306?v=3","gravatar_id":"","url":"https://api.github.com/users/BrandonZacharie","html_url":"https://github.com/BrandonZacharie","followers_url":"https://api.github.com/users/BrandonZacharie/followers","following_url":"https://api.github.com/users/BrandonZacharie/following{/other_user}","gists_url":"https://api.github.com/users/BrandonZacharie/gists{/gist_id}","starred_url":"https://api.github.com/users/BrandonZacharie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrandonZacharie/subscriptions","organizations_url":"https://api.github.com/users/BrandonZacharie/orgs","repos_url":"https://api.github.com/users/BrandonZacharie/repos","events_url":"https://api.github.com/users/BrandonZacharie/events{/privacy}","received_events_url":"https://api.github.com/users/BrandonZacharie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-16T06:43:44Z","updated_at":"2016-02-17T21:07:08Z","closed_at":null,"body":"I get the following when attempting to run tests.\r\n\r\n```\r\n➜  scrypt git:(develop) ✗ npm test\r\n\r\n> scrypt@6.0.1 test /Users/Brandon/.../node_modules/scrypt\r\n> mocha tests/scrypt-tests.js\r\n\r\nmodule.js:328\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module './options'\r\n    at Function.Module._resolveFilename (module.js:326:15)\r\n    at Function.Module._load (module.js:277:25)\r\n    at Module.require (module.js:354:17)\r\n    at require (internal/module.js:12:17)\r\n    at Object.<anonymous> (/Users/Brandon/.../node_modules/.bin/mocha:11:16)\r\n    at Module._compile (module.js:410:26)\r\n    at Object.Module._extensions..js (module.js:417:10)\r\n    at Module.load (module.js:344:32)\r\n    at Function.Module._load (module.js:301:12)\r\n    at Function.Module.runMain (module.js:442:10)\r\nnpm ERR! Test failed.  See above for more details.\r\n```"},"comment":{"url":"https://api.github.com/repos/barrysteyn/node-scrypt/issues/comments/185403590","html_url":"https://github.com/barrysteyn/node-scrypt/issues/116#issuecomment-185403590","issue_url":"https://api.github.com/repos/barrysteyn/node-scrypt/issues/116","id":185403590,"user":{"login":"BrandonZacharie","id":27306,"avatar_url":"https://avatars.githubusercontent.com/u/27306?v=3","gravatar_id":"","url":"https://api.github.com/users/BrandonZacharie","html_url":"https://github.com/BrandonZacharie","followers_url":"https://api.github.com/users/BrandonZacharie/followers","following_url":"https://api.github.com/users/BrandonZacharie/following{/other_user}","gists_url":"https://api.github.com/users/BrandonZacharie/gists{/gist_id}","starred_url":"https://api.github.com/users/BrandonZacharie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrandonZacharie/subscriptions","organizations_url":"https://api.github.com/users/BrandonZacharie/orgs","repos_url":"https://api.github.com/users/BrandonZacharie/repos","events_url":"https://api.github.com/users/BrandonZacharie/events{/privacy}","received_events_url":"https://api.github.com/users/BrandonZacharie/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T21:07:08Z","updated_at":"2016-02-17T21:07:08Z","body":"The entry for `npm test` (`mocha tests/scrypt-tests.js`) references `mocha` without a path. I tried running the tests again but with a relative path to `mocha` and the `tests` directory and it worked. I recommend changing the entry for `npm test` to `node_modules/mocha/bin/mocha tests` to ensure it uses the module's version of mocha. I also recommend changing the file path to just the `tests` directory so that it runs all test scripts (although there is only one script in the directory at the moment, you may want to split them up and/or add more in the future).\r\n![screen shot 2016-02-17 at 13 02 41](https://cloud.githubusercontent.com/assets/27306/13124755/c78d59c8-d576-11e5-8604-8a83bd372190.png)\r\n"}}