{"action":"created","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/983","labels_url":"https://api.github.com/repos/nunit/nunit/issues/983/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/983/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/983/events","html_url":"https://github.com/nunit/nunit/issues/983","id":114887660,"number":983,"title":"Inconsistent return codes depending on ProcessModel","user":{"login":"CharliePoole","id":2678661,"avatar_url":"https://avatars.githubusercontent.com/u/2678661?v=3","gravatar_id":"","url":"https://api.github.com/users/CharliePoole","html_url":"https://github.com/CharliePoole","followers_url":"https://api.github.com/users/CharliePoole/followers","following_url":"https://api.github.com/users/CharliePoole/following{/other_user}","gists_url":"https://api.github.com/users/CharliePoole/gists{/gist_id}","starred_url":"https://api.github.com/users/CharliePoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharliePoole/subscriptions","organizations_url":"https://api.github.com/users/CharliePoole/orgs","repos_url":"https://api.github.com/users/CharliePoole/repos","events_url":"https://api.github.com/users/CharliePoole/events{/privacy}","received_events_url":"https://api.github.com/users/CharliePoole/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nunit/nunit/labels/is:bug","name":"is:bug","color":"fc2929"},{"url":"https://api.github.com/repos/nunit/nunit/labels/pri:high","name":"pri:high","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"rprouse","id":493828,"avatar_url":"https://avatars.githubusercontent.com/u/493828?v=3","gravatar_id":"","url":"https://api.github.com/users/rprouse","html_url":"https://github.com/rprouse","followers_url":"https://api.github.com/users/rprouse/followers","following_url":"https://api.github.com/users/rprouse/following{/other_user}","gists_url":"https://api.github.com/users/rprouse/gists{/gist_id}","starred_url":"https://api.github.com/users/rprouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rprouse/subscriptions","organizations_url":"https://api.github.com/users/rprouse/orgs","repos_url":"https://api.github.com/users/rprouse/repos","events_url":"https://api.github.com/users/rprouse/events{/privacy}","received_events_url":"https://api.github.com/users/rprouse/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nunit/nunit/milestones/17","html_url":"https://github.com/nunit/nunit/milestones/3.0-RC-2","labels_url":"https://api.github.com/repos/nunit/nunit/milestones/17/labels","id":1391889,"number":17,"title":"3.0-RC-2","description":"Second Release Candidate for NUnit 3.0.","creator":{"login":"CharliePoole","id":2678661,"avatar_url":"https://avatars.githubusercontent.com/u/2678661?v=3","gravatar_id":"","url":"https://api.github.com/users/CharliePoole","html_url":"https://github.com/CharliePoole","followers_url":"https://api.github.com/users/CharliePoole/followers","following_url":"https://api.github.com/users/CharliePoole/following{/other_user}","gists_url":"https://api.github.com/users/CharliePoole/gists{/gist_id}","starred_url":"https://api.github.com/users/CharliePoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharliePoole/subscriptions","organizations_url":"https://api.github.com/users/CharliePoole/orgs","repos_url":"https://api.github.com/users/CharliePoole/repos","events_url":"https://api.github.com/users/CharliePoole/events{/privacy}","received_events_url":"https://api.github.com/users/CharliePoole/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2015-11-03T17:54:25Z","updated_at":"2015-11-04T21:56:49Z","due_on":"2015-11-06T08:00:00Z","closed_at":null},"comments":4,"created_at":"2015-11-03T19:11:02Z","updated_at":"2015-11-05T00:35:59Z","closed_at":null,"body":"Per @NikolayPianikov...\r\n\r\n> When --process=InProces, nunit returns -100 for StackOverflow exception\r\nbut when --process=Multiple or Separate, nunit returns 0. Is it possible to return -100? TeamCity looks at the negative exit code to raise a build problem\r\n\r\nand...\r\n\r\n> When --process=InProces, nunit returns -100 for OutOfMemory exception\r\nbut when --process=Multiple or Separate, nunit returns 1 for one failed test.\r\nIt will be better if nunit console returns the same exit code\r\n\r\nWhen a separate agent is used, it's the agent process that terminates with -100. We used to detect that the agent had died and terminate the console with -100 as well.\r\n\r\nHowever, in NUnit 3.0, we wanted to continue in order to report tests from any other agents, so we trapped the exception that causes us to terminate. We report the problem with the terminated assembly in the XML and on the console output.\r\n\r\nThat's all well and good, but we need to somehow reflect the failure in the return code as well.\r\n\r\n@NikolayPianikov Imagine two assemblies running in two agents. One of them runs to completion with two failures - the normal return code would be 2. The other gets an OutOfMemoryException - the normal return code would be -100. What should nunit-console return?"},"comment":{"url":"https://api.github.com/repos/nunit/nunit/issues/comments/153915888","html_url":"https://github.com/nunit/nunit/issues/983#issuecomment-153915888","issue_url":"https://api.github.com/repos/nunit/nunit/issues/983","id":153915888,"user":{"login":"rprouse","id":493828,"avatar_url":"https://avatars.githubusercontent.com/u/493828?v=3","gravatar_id":"","url":"https://api.github.com/users/rprouse","html_url":"https://github.com/rprouse","followers_url":"https://api.github.com/users/rprouse/followers","following_url":"https://api.github.com/users/rprouse/following{/other_user}","gists_url":"https://api.github.com/users/rprouse/gists{/gist_id}","starred_url":"https://api.github.com/users/rprouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rprouse/subscriptions","organizations_url":"https://api.github.com/users/rprouse/orgs","repos_url":"https://api.github.com/users/rprouse/repos","events_url":"https://api.github.com/users/rprouse/events{/privacy}","received_events_url":"https://api.github.com/users/rprouse/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T00:35:59Z","updated_at":"2015-11-05T00:35:59Z","body":"Sure, I will try to get it in time for the RC.\n\nOn 4 November 2015 at 18:55, CharliePoole <notifications@github.com> wrote:\n\n> @rprouse <https://github.com/rprouse> I assigned this to you without\n> telling you. What do you think? :-)\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/nunit/nunit/issues/983#issuecomment-153908540>.\n>\n\n\n\n-- \n\nRob Prouse\n\n\n\nI welcome VSRE emails. Learn more at http://vsre.info/\n"}}