{"action":"created","issue":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1103","repository_url":"https://api.github.com/repos/nightwatchjs/nightwatch","labels_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1103/labels{/name}","comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1103/comments","events_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1103/events","html_url":"https://github.com/nightwatchjs/nightwatch/issues/1103","id":167492415,"number":1103,"title":"Test passed successfully even if failed","user":{"login":"Tims101","id":4144198,"avatar_url":"https://avatars.githubusercontent.com/u/4144198?v=3","gravatar_id":"","url":"https://api.github.com/users/Tims101","html_url":"https://github.com/Tims101","followers_url":"https://api.github.com/users/Tims101/followers","following_url":"https://api.github.com/users/Tims101/following{/other_user}","gists_url":"https://api.github.com/users/Tims101/gists{/gist_id}","starred_url":"https://api.github.com/users/Tims101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tims101/subscriptions","organizations_url":"https://api.github.com/users/Tims101/orgs","repos_url":"https://api.github.com/users/Tims101/repos","events_url":"https://api.github.com/users/Tims101/events{/privacy}","received_events_url":"https://api.github.com/users/Tims101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-25T23:58:04Z","updated_at":"2016-07-26T23:46:44Z","closed_at":null,"body":"Hi there,\r\n\r\nI have test `failed.js` that contains exception in `after` method.\r\n\r\n```javascript\r\n\r\nvar assert = require('assert');\r\n\r\nmodule.exports = {\r\n\r\n  after: function(browser) {\r\n    throw 1;\r\n    browser.end();\r\n  },\r\n\r\n  'Failed test': function(browser) {\r\n    assert(false);\r\n  }\r\n};\r\n```\r\n\r\nIf I run it separately `nightwatch --test tests/failed.js`, I have \r\n\r\n```\r\nStarting selenium server... started - PID:  15027\r\n\r\n[Failed] Test Suite\r\n=======================\r\n\r\nRunning:  Failed test\r\n ✖ AssertionError: false == true - expected \"true\" but got: \"false\"\r\n    at Object.module.exports.Failed test (...tests/tests/failed.js:11:5)\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n\r\nFAILED:  1 assertions failed (7ms)\r\n\r\n1\r\n```\r\n\r\nIt works properly.\r\n\r\nBut if I run all tests `nightwatch --suiteRetries 3` in parallel mode it doesn't write any information about that test and return success in result.\r\n\r\n```\r\nnightwatch --suiteRetries 3\r\n\r\nStarting selenium server in parallel mode... started - PID:  15048\r\n\r\nStarted child process for: tests/one-test\r\nStarted child process for: tests/another-test\r\nStarted child process for: tests/failed \r\n\r\n  >> tests/failed finished.  \r\n....\r\n# information about other tests\r\n# success in result\r\n```\r\n\r\nnightwatch v0.9.5\r\nnode v3.8.6\r\n\r\nIt works on 0.8.18 in proper way - it shows proper errors in log and failed status in result.\r\nMy [nightwatch.json](https://gist.github.com/Tims101/39e16f7ba0293cfea3781eaae68e390e).\r\n\r\nCheers.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/comments/235440276","html_url":"https://github.com/nightwatchjs/nightwatch/issues/1103#issuecomment-235440276","issue_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1103","id":235440276,"user":{"login":"senocular","id":3536716,"avatar_url":"https://avatars.githubusercontent.com/u/3536716?v=3","gravatar_id":"","url":"https://api.github.com/users/senocular","html_url":"https://github.com/senocular","followers_url":"https://api.github.com/users/senocular/followers","following_url":"https://api.github.com/users/senocular/following{/other_user}","gists_url":"https://api.github.com/users/senocular/gists{/gist_id}","starred_url":"https://api.github.com/users/senocular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senocular/subscriptions","organizations_url":"https://api.github.com/users/senocular/orgs","repos_url":"https://api.github.com/users/senocular/repos","events_url":"https://api.github.com/users/senocular/events{/privacy}","received_events_url":"https://api.github.com/users/senocular/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T23:46:44Z","updated_at":"2016-07-26T23:46:44Z","body":"Looks similar to #908?"}}
{"actor":{"display_login":"senocular"}}