{"action":"created","issue":{"url":"https://api.github.com/repos/spekt/nunit.testlogger/issues/33","repository_url":"https://api.github.com/repos/spekt/nunit.testlogger","labels_url":"https://api.github.com/repos/spekt/nunit.testlogger/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/spekt/nunit.testlogger/issues/33/comments","events_url":"https://api.github.com/repos/spekt/nunit.testlogger/issues/33/events","html_url":"https://github.com/spekt/nunit.testlogger/issues/33","id":374826881,"node_id":"MDU6SXNzdWUzNzQ4MjY4ODE=","number":33,"title":"NUnit logger output not understood by Jenkins NUnit plugin","user":{"login":"agray","id":118102,"node_id":"MDQ6VXNlcjExODEwMg==","avatar_url":"https://avatars3.githubusercontent.com/u/118102?v=4","gravatar_id":"","url":"https://api.github.com/users/agray","html_url":"https://github.com/agray","followers_url":"https://api.github.com/users/agray/followers","following_url":"https://api.github.com/users/agray/following{/other_user}","gists_url":"https://api.github.com/users/agray/gists{/gist_id}","starred_url":"https://api.github.com/users/agray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agray/subscriptions","organizations_url":"https://api.github.com/users/agray/orgs","repos_url":"https://api.github.com/users/agray/repos","events_url":"https://api.github.com/users/agray/events{/privacy}","received_events_url":"https://api.github.com/users/agray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-29T01:40:34Z","updated_at":"2018-10-29T02:56:46Z","closed_at":null,"author_association":"NONE","body":"I have a pipeline that executes some simple dummy NUnit 3 tests.\r\n\r\n    stage('UnitTest') {\r\n                steps {\r\n                    bat 'dotnet test ./DNC.Test/DNC.Test.csproj --test-adapter-path:. --logger:\"nunit;LogFilePath=../test-result.xml\"'\r\n                }\r\n            }\r\n\r\ntest-result.xml looks like this:\r\n\r\n    <?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n    <test-run id=\"2\" duration=\"0.0070002\" testcasecount=\"3\" total=\"3\" passed=\"3\" failed=\"0\" skipped=\"0\" result=\"Passed\" start-time=\"2018-10-29T 01:21:16Z\" end-time=\"2018-10-29T 01:21:17Z\">\r\n        <test-suite type=\"Assembly\" name=\"DNC.Test.dll\" fullname=\"G:\\Jenkins\\workspace\\POC\\Pipeline\\DNCTest\\DNC.Test\\bin\\Debug\\netcoreapp2.1\\DNC.Test.dll\" total=\"3\" passed=\"3\" failed=\"0\" skipped=\"0\" duration=\"0.0070002\" errors=\"0\" result=\"Passed\">\r\n          <errors />\r\n          <test-suite type=\"TestFixture\" name=\"AdderTests\" fullname=\"Tests.AdderTests\" total=\"3\" passed=\"3\" failed=\"0\" skipped=\"0\" result=\"Passed\" duration=\"0.0070002\">\r\n              <test-case name=\"AddNegativeOneAndNegativeTwo\" fullname=\"Tests.AdderTests.AddNegativeOneAndNegativeTwo\" result=\"Passed\" duration=\"0.0069999999999999993\" asserts=\"0\" />\r\n              <test-case name=\"AddNegativeOneAndTwo\" fullname=\"Tests.AdderTests.AddNegativeOneAndTwo\" result=\"Passed\" duration=\"1E-07\" asserts=\"0\" />\r\n              <test-case name=\"AddOneAndTwo\" fullname=\"Tests.AdderTests.AddOneAndTwo\" result=\"Passed\" duration=\"1E-07\" asserts=\"0\" />\r\n          </test-suite>\r\n      </test-suite>\r\n    </test-run>\r\n\r\nIf I compare this file to a working one produce by nunit3-console.exe there appears to be missing `<test-suite>` tags.\r\n\r\nWhen I publish this results file with the latest available version of the NUnit plugin (Jenkins 2.138.2) like so:\r\n\r\n    nunit testResultsPattern: 'test-result.xml'\r\n\r\nI lose the information about the tests.  Please see attached.  It seems to me that this adapter is not emitting XML the Jenkins NUnit plugin properly understands.  This is an issue that has appeared with .NET core.  It is not an issue with .NET Framework and output created with nunit3-console.exe.\r\n\r\n![dnctestresults1](https://user-images.githubusercontent.com/118102/47625200-c22b2a00-db77-11e8-8558-3771b9255022.png)\r\n![dnctestresults2](https://user-images.githubusercontent.com/118102/47625202-c2c3c080-db77-11e8-87e7-87d0d2f9a2f6.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spekt/nunit.testlogger/issues/comments/433773879","html_url":"https://github.com/spekt/nunit.testlogger/issues/33#issuecomment-433773879","issue_url":"https://api.github.com/repos/spekt/nunit.testlogger/issues/33","id":433773879,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzc3Mzg3OQ==","user":{"login":"agray","id":118102,"node_id":"MDQ6VXNlcjExODEwMg==","avatar_url":"https://avatars3.githubusercontent.com/u/118102?v=4","gravatar_id":"","url":"https://api.github.com/users/agray","html_url":"https://github.com/agray","followers_url":"https://api.github.com/users/agray/followers","following_url":"https://api.github.com/users/agray/following{/other_user}","gists_url":"https://api.github.com/users/agray/gists{/gist_id}","starred_url":"https://api.github.com/users/agray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agray/subscriptions","organizations_url":"https://api.github.com/users/agray/orgs","repos_url":"https://api.github.com/users/agray/repos","events_url":"https://api.github.com/users/agray/events{/privacy}","received_events_url":"https://api.github.com/users/agray/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T02:56:46Z","updated_at":"2018-10-29T02:56:46Z","author_association":"NONE","body":"Attached is an nunit3-console.exe output file a corresponding screenshots.\r\n\r\n**Output File**\r\n\r\n[working_nunit3console_output_xml.txt](https://github.com/spekt/nunit.testlogger/files/2523608/working_nunit3console_output_xml.txt)\r\n\r\n**Screenshots**\r\n![working_console_output1](https://user-images.githubusercontent.com/118102/47627061-44b8e700-db82-11e8-9ea6-0e469e239e59.png)\r\n![working_console_output2](https://user-images.githubusercontent.com/118102/47627062-45517d80-db82-11e8-9242-6beedf8c35e8.png)\r\n![working_console_output3](https://user-images.githubusercontent.com/118102/47627063-45517d80-db82-11e8-9366-ca7994ac43a6.png)\r\n![working_console_output4](https://user-images.githubusercontent.com/118102/47627064-45ea1400-db82-11e8-9a21-94782dd1ece1.png)\r\n"}}
{"actor":{"display_login":"agray"}}