{"action":"created","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/1782","repository_url":"https://api.github.com/repos/nunit/nunit","labels_url":"https://api.github.com/repos/nunit/nunit/issues/1782/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/1782/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/1782/events","html_url":"https://github.com/nunit/nunit/issues/1782","id":174759782,"number":1782,"title":"NUnit3 result format output as nunit2 reports test dll as ignored if one or more child tests marked as ignored","user":{"login":"harrisonmeister","id":1418993,"avatar_url":"https://avatars.githubusercontent.com/u/1418993?v=3","gravatar_id":"","url":"https://api.github.com/users/harrisonmeister","html_url":"https://github.com/harrisonmeister","followers_url":"https://api.github.com/users/harrisonmeister/followers","following_url":"https://api.github.com/users/harrisonmeister/following{/other_user}","gists_url":"https://api.github.com/users/harrisonmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/harrisonmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrisonmeister/subscriptions","organizations_url":"https://api.github.com/users/harrisonmeister/orgs","repos_url":"https://api.github.com/users/harrisonmeister/repos","events_url":"https://api.github.com/users/harrisonmeister/events{/privacy}","received_events_url":"https://api.github.com/users/harrisonmeister/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-02T13:28:19Z","updated_at":"2016-09-02T17:28:21Z","closed_at":"2016-09-02T17:28:21Z","body":"Hi,\r\n\r\nI'm not sure if this is by design or an issue, so please feel free to close if by design.\r\n\r\nI am running a test project using the NUNit3 console.exe, and I receive the following output:\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n<!--This file represents the results of running a test suite-->\r\n<test-results name=\"D:\\PATH_TO_LIBRARY\\Some.Library.dll\" total=\"2\" errors=\"0\" failures=\"0\" not-run=\"1\" inconclusive=\"0\" ignored=\"1\" skipped=\"0\" invalid=\"0\" date=\"2016-09-02\" time=\"13:20:50\">\r\n  <environment nunit-version=\"3.4.1.0\" clr-version=\"4.0.30319.42000\" os-version=\"Microsoft Windows NT 10.0.10586.0\" platform=\"Win32NT\" cwd=\"D:\\Git\\Source\" machine-name=\"REDACTEED\" user=\"REDACTED\" user-domain=\"REDACTED\" />\r\n  <culture-info current-culture=\"en-GB\" current-uiculture=\"en-GB\" />\r\n  <test-suite type=\"Assembly\" name=\"D:\\PATH_TO_LIBRARY\\Some.Library.dll\" executed=\"False\" result=\"Ignored\">\r\n    <properties>\r\n      <property name=\"_PID\" value=\"19472\" />\r\n      <property name=\"_APPDOMAIN\" value=\"test-domain-\" />\r\n    </properties>\r\n    <reason>\r\n      <message><![CDATA[One or more child tests were ignored]]></message>\r\n    </reason>\r\n    <results>\r\n      <test-suite type=\"TestSuite\" name=\"A\" executed=\"False\" result=\"Ignored\">\r\n        <reason>\r\n          <message><![CDATA[One or more child tests were ignored]]></message>\r\n        </reason>\r\n        <results>\r\n          <test-suite type=\"TestSuite\" name=\"B\" executed=\"False\" result=\"Ignored\">\r\n            <reason>\r\n              <message><![CDATA[One or more child tests were ignored]]></message>\r\n            </reason>\r\n            <results>\r\n              <test-suite type=\"TestSuite\" name=\"C\" executed=\"False\" result=\"Ignored\">\r\n                <reason>\r\n                  <message><![CDATA[One or more child tests were ignored]]></message>\r\n                </reason>\r\n                <results>\r\n                  <test-suite type=\"TestFixture\" name=\"D\" executed=\"False\" result=\"Ignored\">\r\n                    <reason>\r\n                      <message><![CDATA[One or more child tests were ignored]]></message>\r\n                    </reason>\r\n                    <results>\r\n                      <test-case name=\"A.B.C.D.Ignored_Test\" executed=\"False\" result=\"Ignored\">\r\n                        <properties>\r\n                          <property name=\"_SKIPREASON\" value=\"Ignored for some reason\" />\r\n                        </properties>\r\n                        <reason>\r\n                          <message><![CDATA[Ignored for some reason]]></message>\r\n                        </reason>\r\n                      </test-case>\r\n                      <test-case name=\"A.B.C.D.Test_That_Works\" executed=\"True\" result=\"Success\" success=\"True\" time=\"0.027\" asserts=\"0\">\r\n                        <reason>\r\n                          <message><![CDATA[]]></message>\r\n                        </reason>\r\n                      </test-case>\r\n                    </results>\r\n                  </test-suite>\r\n                </results>\r\n              </test-suite>\r\n            </results>\r\n          </test-suite>\r\n        </results>\r\n      </test-suite>\r\n    </results>\r\n  </test-suite>\r\n</test-results>\r\n```\r\n\r\nThis marks the library test result as Ignored and not executed, even though one of the tests has run. \r\n\r\nSpecifically I have code which merged test result summaries (based on the nunit2 format). As NUnit2 (2.6.4) always added \"time\" and \"asserts\" as attributes, I'm just trying to work out if the result I am seeing in NUnit 3 is expected or not.\r\n\r\n```\r\n[TestFixture]\r\n    public class ApisEstaCalculatorTests\r\n    {\r\n        [SetUp]\r\n        public void SetUp()\r\n        {\r\n            \r\n        }\r\n\r\n        [Test]\r\n        public void Test_That_Works()\r\n        {\r\n            Assert.Pass();\r\n        }\r\n        \r\n        [Test, Ignore(\"Ignored for some reason\")]\r\n        public void Ignored_Test()\r\n        {\r\n            \r\n        }\r\n    }\r\n```\r\n\r\nAbove is the sample code, and here is the associated console I am running\r\n`D:\\packages\\NUnit.ConsoleRunner\\tools\\nunit3-console.exe \"--noheader\" \"--where=!(cat == 'Integration' || cat == 'IntegrationTest' || cat == 'IntegrationsTest' || cat == 'IntegrationTests' || cat == 'IntegrationsTests' || cat == 'Integration Test' || cat == 'Integration Tests' || cat == 'Integrations Tests' || cat == 'Approval Tests' || cat == 'AcceptanceTest' || cat == 'PerformanceTest')\" \"--labels=Off\" \"--timeout=900000\" \"--stoponerror\" \"--result=D:\\TestResult-unit-64-0.xml;format=nunit2\" \"D:\\PATH_TO_LIBRARY\\Some.Library.dll\"`\r\n\r\nMy main issue is that \r\n`<test-suite type=\"Assembly\" name=\"D:\\PATH_TO_LIBRARY\\Some.Library.dll\" executed=\"False\" result=\"Ignored\">` doesnt contain the time or asserts attributes any more. Running against 2.6.4 console runner, it does."},"comment":{"url":"https://api.github.com/repos/nunit/nunit/issues/comments/244437933","html_url":"https://github.com/nunit/nunit/issues/1782#issuecomment-244437933","issue_url":"https://api.github.com/repos/nunit/nunit/issues/1782","id":244437933,"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},"created_at":"2016-09-02T17:28:21Z","updated_at":"2016-09-02T17:28:21Z","body":"Issue moved to [nunit/nunit-console #51](https://github.com/nunit/nunit-console/issues/51) via [**ZenHub**](https://www.zenhub.com/)\n"}}
{"actor":{"display_login":"CharliePoole"}}