Issue with test-kitchen failed Pester tests

Hi, I am wondering if anyone out there is familiar with using Pester to test some configurations with test-kitchen.

I am running some Pester tests on Windows Server 2012 R2 after applying a cookbook with some DSC configurations in it. When all of my tests pass it comes back looking good; however, if any of my tests fail I get a wall of XML and some errors in my kitchen.log file


E, [2016-08-15T11:23:31.949357 #4768] ERROR – NugetServerSetup-windows-2012r2: ----------------------
E, [2016-08-15T11:23:31.949357 #4768] ERROR – NugetServerSetup-windows-2012r2: ------Backtrace-------
E, [2016-08-15T11:23:31.949357 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/verifier/base.rb:83:in rescue in call' E, [2016-08-15T11:23:31.949357 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/verifier/base.rb:86:incall’
E, [2016-08-15T11:23:31.949357 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:423:in block in verify_action' E, [2016-08-15T11:23:31.949357 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:513:incall’
E, [2016-08-15T11:23:31.949357 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:513:in synchronize_or_call' E, [2016-08-15T11:23:31.949357 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:478:inblock in action’
E, [2016-08-15T11:23:31.949357 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in measure' E, [2016-08-15T11:23:31.949357 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:477:inaction’
E, [2016-08-15T11:23:31.949357 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:415:in verify_action' E, [2016-08-15T11:23:31.949357 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:348:inblock in transition_to’
E, [2016-08-15T11:23:31.949357 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:347:in each' E, [2016-08-15T11:23:31.950356 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:347:intransition_to’
E, [2016-08-15T11:23:31.950356 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:160:in verify' E, [2016-08-15T11:23:31.950356 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/command.rb:201:inpublic_send’
E, [2016-08-15T11:23:31.950356 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/command.rb:201:in run_action_in_thread' E, [2016-08-15T11:23:31.950356 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/command.rb:173:inblock (2 levels) in run_action’
E, [2016-08-15T11:23:31.950356 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in call' E, [2016-08-15T11:23:31.950356 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:inblock in create_with_logging_context’
E, [2016-08-15T11:23:31.950356 #4768] ERROR – NugetServerSetup-windows-2012r2: ----End Backtrace-----
E, [2016-08-15T11:23:31.950356 #4768] ERROR – NugetServerSetup-windows-2012r2: —Nested Exception—
E, [2016-08-15T11:23:31.950356 #4768] ERROR – NugetServerSetup-windows-2012r2: Class: Kitchen::Transport::WinrmFailed
E, [2016-08-15T11:23:31.950356 #4768] ERROR – NugetServerSetup-windows-2012r2: Message: WinRM exited (11) for command: [set-executionpolicy unrestricted -force;
$global:ProgressPreference = ‘SilentlyContinue’

env:psmodulepath += ";(join-path (resolve-path $env:temp).path ‘verifier/modules’)";

env:psmodulepath -split ';' | % {write-output "PSModulePath contains:"} {write-output "`t_"}

      $TestPath = "$env:TEMP\verifier";

import-module Pester -force;
$result = invoke-pester -path $testpath -passthru ;
$result |
export-clixml (join-path $testpath ‘result.xml’);
$host.setshouldexit($result.failedcount)

]
E, [2016-08-15T11:23:31.950356 #4768] ERROR – NugetServerSetup-windows-2012r2: ----------------------
E, [2016-08-15T11:23:31.951358 #4768] ERROR – NugetServerSetup-windows-2012r2: ------Backtrace-------
E, [2016-08-15T11:23:31.951358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/verifier/base.rb:83:in rescue in call' E, [2016-08-15T11:23:31.951358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/verifier/base.rb:86:incall’
E, [2016-08-15T11:23:31.951358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:423:in block in verify_action' E, [2016-08-15T11:23:31.951358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:513:incall’
E, [2016-08-15T11:23:31.951358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:513:in synchronize_or_call' E, [2016-08-15T11:23:31.951358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:478:inblock in action’
E, [2016-08-15T11:23:31.951358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in measure' E, [2016-08-15T11:23:31.951358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:477:inaction’
E, [2016-08-15T11:23:31.951358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:415:in verify_action' E, [2016-08-15T11:23:31.951358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:348:inblock in transition_to’
E, [2016-08-15T11:23:31.951358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:347:in each' E, [2016-08-15T11:23:31.951358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:347:intransition_to’
E, [2016-08-15T11:23:31.952358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/instance.rb:160:in verify' E, [2016-08-15T11:23:31.952358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/command.rb:201:inpublic_send’
E, [2016-08-15T11:23:31.952358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/command.rb:201:in run_action_in_thread' E, [2016-08-15T11:23:31.952358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/test-kitchen-1.10.0/lib/kitchen/command.rb:173:inblock (2 levels) in run_action’
E, [2016-08-15T11:23:31.952358 #4768] ERROR – NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in call' E, [2016-08-15T11:23:31.952358 #4768] ERROR -- NugetServerSetup-windows-2012r2: C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:inblock in create_with_logging_context’
E, [2016-08-15T11:23:31.952358 #4768] ERROR – NugetServerSetup-windows-2012r2: ----End Backtrace-----