{"action":"closed","issue":{"url":"https://api.github.com/repos/cake-build/cake/issues/744","repository_url":"https://api.github.com/repos/cake-build/cake","labels_url":"https://api.github.com/repos/cake-build/cake/issues/744/labels{/name}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/744/comments","events_url":"https://api.github.com/repos/cake-build/cake/issues/744/events","html_url":"https://github.com/cake-build/cake/issues/744","id":139417515,"number":744,"title":"XUnit command line bug","user":{"login":"jeffdoolittle","id":105651,"avatar_url":"https://avatars.githubusercontent.com/u/105651?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffdoolittle","html_url":"https://github.com/jeffdoolittle","followers_url":"https://api.github.com/users/jeffdoolittle/followers","following_url":"https://api.github.com/users/jeffdoolittle/following{/other_user}","gists_url":"https://api.github.com/users/jeffdoolittle/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffdoolittle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffdoolittle/subscriptions","organizations_url":"https://api.github.com/users/jeffdoolittle/orgs","repos_url":"https://api.github.com/users/jeffdoolittle/repos","events_url":"https://api.github.com/users/jeffdoolittle/events{/privacy}","received_events_url":"https://api.github.com/users/jeffdoolittle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cake-build/cake/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/cake-build/cake/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"devlead","id":1647294,"avatar_url":"https://avatars.githubusercontent.com/u/1647294?v=3","gravatar_id":"","url":"https://api.github.com/users/devlead","html_url":"https://github.com/devlead","followers_url":"https://api.github.com/users/devlead/followers","following_url":"https://api.github.com/users/devlead/following{/other_user}","gists_url":"https://api.github.com/users/devlead/gists{/gist_id}","starred_url":"https://api.github.com/users/devlead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlead/subscriptions","organizations_url":"https://api.github.com/users/devlead/orgs","repos_url":"https://api.github.com/users/devlead/repos","events_url":"https://api.github.com/users/devlead/events{/privacy}","received_events_url":"https://api.github.com/users/devlead/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cake-build/cake/milestones/16","html_url":"https://github.com/cake-build/cake/milestones/v0.10.0","labels_url":"https://api.github.com/repos/cake-build/cake/milestones/16/labels","id":1460304,"number":16,"title":"v0.10.0","description":"","creator":{"login":"patriksvensson","id":357872,"avatar_url":"https://avatars.githubusercontent.com/u/357872?v=3","gravatar_id":"","url":"https://api.github.com/users/patriksvensson","html_url":"https://github.com/patriksvensson","followers_url":"https://api.github.com/users/patriksvensson/followers","following_url":"https://api.github.com/users/patriksvensson/following{/other_user}","gists_url":"https://api.github.com/users/patriksvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/patriksvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriksvensson/subscriptions","organizations_url":"https://api.github.com/users/patriksvensson/orgs","repos_url":"https://api.github.com/users/patriksvensson/repos","events_url":"https://api.github.com/users/patriksvensson/events{/privacy}","received_events_url":"https://api.github.com/users/patriksvensson/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":10,"state":"open","created_at":"2015-12-14T22:35:57Z","updated_at":"2016-03-09T12:39:22Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-03-08T22:50:07Z","updated_at":"2016-03-09T12:39:22Z","closed_at":"2016-03-09T12:39:22Z","body":"The XUnit command line doesn't work anymore on the latest version of Cake. It appears to be attempting to send multiple test dlls as command line parameters which is not allowed for XUnit. See the diagnostic output below.\r\n\r\nPerhaps XUnit2 allows this and that is the reason for the regression?\r\n\r\n========================================\r\nRun-Unit-Tests\r\n========================================\r\nExecuting task: Run-Unit-Tests\r\nExecuting: \"C:/Projects/MyProject/tools/xunit.runners/tools/xunit.console.clr4.exe\" \"C:/Projects/MyProject/src/MyProject.Api.Tests/bin/Debug/MyProject.Api.Tests\r\n.dll\" \"C:/Projects/MyProject/src/MyProject.Model.Tests/bin/Debug/MyProject.Model.Tests.dll\" \"/html\" \"C:/Projects/MyProject/build/test-results/TestResults.html\"\r\n\"/xml\" \"C:/Projects/MyProject/build/test-results/TestResults.xml\"\r\nxUnit.net console test runner (64-bit .NET 4.0.30319.42000)\r\nCopyright (C) 2013 Outercurve Foundation.\r\n\r\nxunit.dll:     Version 1.9.2.1705\r\nTest assembly: C:\\Projects\\MyProject\\src\\MyProject.Api.Tests\\bin\\Debug\\MyProject.Api.Tests.dll\r\n\r\nGiven a browser when authorizing as valid user, should have status code OK [FAIL]\r\n   System.Configuration.ConfigurationErrorsException : Configuration system failed to initialize\r\n   ---- System.Configuration.ConfigurationErrorsException : Data at the root level is invalid. Line 1, position 1. (C:\\Projects\\MyProject\\src\\MyProject.Model.Tests\\bin\\De\r\nbug\\MyProject.Model.Tests.dll line 1)\r\n   -------- System.Xml.XmlException : Data at the root level is invalid. Line 1, position 1.\r\n   Stack Trace:\r\n      at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)\r\n      at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)\r\n      at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)\r\n      at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)\r\n      at System.Diagnostics.DiagnosticsConfiguration.Initialize()\r\n      at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize()\r\n      at System.Diagnostics.TraceInternal.InitializeSettings()\r\n      at System.Diagnostics.TraceInternal.get_Listeners()\r\n      at System.Diagnostics.Trace.get_Listeners()\r\n      at Xunit.Sdk.ExceptionAndOutputCaptureCommand.Execute(Object testClass)\r\n   ----- Inner Stack Trace -----\r\n      at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)\r\n      at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)\r\n      at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)\r\n   ----- Inner Stack Trace -----\r\n      at System.Xml.XmlTextReaderImpl.Throw(Exception e)\r\n      at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()\r\n      at System.Xml.XmlTextReaderImpl.ParseDocumentContent()\r\n      at System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)\r\n      at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()\r\n\r\n42 total, 1 failed, 0 skipped, took 4.283 seconds\r\nAn error occured when executing task 'Run-Unit-Tests'.\r\nError: Cake.Core.CakeException: xUnit.net (v1): Process returned an error (exit code 1).\r\n   at Cake.Core.Tooling.Tool`1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action`1 postAction)\r\n   at Cake.Common.Tools.XUnit.XUnitRunner.Run(IEnumerable`1 assemblyPaths, XUnitSettings settings)\r\n   at Submission#0.<.ctor>b__8()\r\n   at Cake.Core.ActionTask.Execute(ICakeContext context)\r\n   at Cake.Core.DefaultExecutionStrategy.Execute(CakeTask task, ICakeContext context)\r\n   at Cake.Core.CakeEngine.ExecuteTask(ICakeContext context, IExecutionStrategy strategy, Stopwatch stopWatch, CakeTask task, CakeReport report)\r\n   at Cake.Core.CakeEngine.RunTarget(ICakeContext context, IExecutionStrategy strategy, String target)\r\n   at Cake.Scripting.BuildScriptHost.RunTarget(String target)\r\n   at Submission#0..ctor(Session session, Object& submissionResult)\r\n   at Submission#0.<Factory>(Session session)\r\n   at Roslyn.Scripting.CommonScriptEngine.Execute[T](String code, String path, DiagnosticBag diagnostics, Session session, Boolean isInteractive)\r\n   at Roslyn.Scripting.Session.Execute(String code)\r\n   at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)\r\n   at Cake.Commands.BuildCommand.Execute(CakeOptions options)\r\n   at Cake.CakeApplication.Run(IEnumerable`1 args)"}}