{"action":"created","issue":{"url":"https://api.github.com/repos/zoubin/tap-summary/issues/15","repository_url":"https://api.github.com/repos/zoubin/tap-summary","labels_url":"https://api.github.com/repos/zoubin/tap-summary/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/zoubin/tap-summary/issues/15/comments","events_url":"https://api.github.com/repos/zoubin/tap-summary/issues/15/events","html_url":"https://github.com/zoubin/tap-summary/issues/15","id":160553918,"number":15,"title":"tap-summary exits without a meaningful error message","user":{"login":"iambumblehead","id":2058705,"avatar_url":"https://avatars.githubusercontent.com/u/2058705?v=3","gravatar_id":"","url":"https://api.github.com/users/iambumblehead","html_url":"https://github.com/iambumblehead","followers_url":"https://api.github.com/users/iambumblehead/followers","following_url":"https://api.github.com/users/iambumblehead/following{/other_user}","gists_url":"https://api.github.com/users/iambumblehead/gists{/gist_id}","starred_url":"https://api.github.com/users/iambumblehead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iambumblehead/subscriptions","organizations_url":"https://api.github.com/users/iambumblehead/orgs","repos_url":"https://api.github.com/users/iambumblehead/repos","events_url":"https://api.github.com/users/iambumblehead/events{/privacy}","received_events_url":"https://api.github.com/users/iambumblehead/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-06-16T00:33:27Z","updated_at":"2016-06-16T02:28:38Z","closed_at":null,"body":"tap-summary exits without a meaningful error message\r\n\r\nWhen I run tests with tape and nothing else, they pass and complete without\r\nissue. When I run tests with tape and tap-summary, the process exits without a\r\nmeaningful error message.\r\n\r\nHere's what it looks like:\r\n\r\n```bash\r\nbumblehead@Chriss-MBP:~/software/privateapp$ npm test\r\n\r\n> privateapp@1.5.0 test /Users/bumblehead/software/privateapp\r\n> npm run test:unit\r\n\r\n\r\n> privateapp@1.5.0 test:unit /Users/bumblehead/software/privateapp\r\n> tape test/unit.test.js | tap-summary\r\n\r\n\r\n------------------------------------ Tests -------------------------------------\r\n\r\n\r\nnpm ERR! Darwin 15.5.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"run\" \"test:unit\"\r\nnpm ERR! node v6.2.0\r\nnpm ERR! npm  v3.8.9\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! privateapp@1.5.0 test:unit: `tape test/unit.test.js | tap-summary`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the privateapp@1.5.0 test:unit script 'tape test/unit.test.js | tap-summary'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the privateapp package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     tape test/unit.test.js | tap-summary\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs privateapp\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls privateapp\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/bumblehead/software/privateapp/npm-debug.log\r\nnpm ERR! Test failed.  See above for more details.\r\n```\r\n\r\nMy test file looks like this:\r\n\r\n``` javascript\r\nvar test = require('tape');\r\n\r\nrequire('../src/config/config.js').oncomplete(function (err, app, config) {\r\n  test('pass a test', function (t) {\r\n    t.equal( true, true, 'should pass true');\r\n    t.end();\r\n  });\r\n  \r\n  test.onFinish(function (o) {\r\n    setTimeout(function () {\r\n      app.close();\r\n      config.close();\r\n    }, 500);\r\n  });\r\n});\r\n```\r\n\r\nIf I remove the async parts of the test, the process completes and passes:\r\n\r\n``` javascript\r\nvar test = require('tape');\r\n\r\ntest('pass a test', function (t) {\r\n  t.equal( true, true, 'should pass true');\r\n  t.end();\r\n});\r\n```\r\n\r\nAm I doing something wrong? How can the async version of the tests be made to\r\ncomplete without exiting the process? Vanilla tape tests w/out tap-summary are not doing this.\r\n"},"comment":{"url":"https://api.github.com/repos/zoubin/tap-summary/issues/comments/226372764","html_url":"https://github.com/zoubin/tap-summary/issues/15#issuecomment-226372764","issue_url":"https://api.github.com/repos/zoubin/tap-summary/issues/15","id":226372764,"user":{"login":"Hypercubed","id":509946,"avatar_url":"https://avatars.githubusercontent.com/u/509946?v=3","gravatar_id":"","url":"https://api.github.com/users/Hypercubed","html_url":"https://github.com/Hypercubed","followers_url":"https://api.github.com/users/Hypercubed/followers","following_url":"https://api.github.com/users/Hypercubed/following{/other_user}","gists_url":"https://api.github.com/users/Hypercubed/gists{/gist_id}","starred_url":"https://api.github.com/users/Hypercubed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hypercubed/subscriptions","organizations_url":"https://api.github.com/users/Hypercubed/orgs","repos_url":"https://api.github.com/users/Hypercubed/repos","events_url":"https://api.github.com/users/Hypercubed/events{/privacy}","received_events_url":"https://api.github.com/users/Hypercubed/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T02:28:38Z","updated_at":"2016-06-16T02:28:38Z","body":"Yes, it's difficult to figure out what is going on without the details of `src/config/config.js`."}}
{"actor":{"display_login":"Hypercubed"}}