tkpatro123 / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Unable to open xUnit.net tests in Icarus #754

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch Gallio Icarus
2. Add an assembly that has xUnit.net tests
3. An exception is thrown during the test explorer.

What is the expected output? What do you see instead?
I would expect to see both my xUnit and Nunit tests in the test explorer

What version of the product are you using? On what operating system?
Gallio Icarus - 3.2 build 601 x64
Windows 7 x64
.Net 4.0

Please provide any additional information below.

If I open a project that only contains Nunit test, the runner works fine, but 
if I add any xUnit.net tests, it always blows up with the attached exception. 

Host started at 10/18/2010 8:59:20 AM.
Running under CLR v4.0.30319 runtime.
Listening for connections on IPC port: 'IsolatedProcessHost.c95ac3f454954e64'
Host stopped at 10/18/2010 8:59:23 AM.
Host process exited with code: 0
Host process exited with code: -2146232576
A fatal exception occurred while exploring tests.  Possible causes include 
invalid test runner parameters.
Gallio.Model.ModelException: An exception occurred while invoking a test 
driver. ---> Gallio.Runtime.Hosting.HostException: An exception occurred while 
connecting to the host service. ---> Gallio.Runtime.Hosting.HostException: 
Error attaching to the host process. ---> Gallio.Runtime.Hosting.HostException: 
The host process terminated abruptly.
   at Gallio.Runtime.Hosting.IsolatedProcessHost.WaitUntilReady(IHostService hostService) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line 373
   at Gallio.Runtime.Hosting.IsolatedProcessHost.AcquireRemoteHostService() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line 119
   --- End of inner exception stack trace ---
   at Gallio.Runtime.Hosting.IsolatedProcessHost.AcquireRemoteHostService() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line 126
   at Gallio.Runtime.Hosting.RemoteHost.AcquireHostService() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\RemoteHost.cs:line 68
   at Gallio.Runtime.Hosting.BaseHost.Connect() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHost.cs:line 142
   --- End of inner exception stack trace ---
   at Gallio.Runtime.Hosting.BaseHost.Connect() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHost.cs:line 151
   at Gallio.Runtime.Hosting.IsolatedProcessHostFactory.CreateHostImpl(HostSetup hostSetup, ILogger logger) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHostFactory.cs:line 59
   at Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskInHost[TIsolatedTask](HostSetup hostSetup, StatusReporter statusReporter, Object[] args) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line 111
   at Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskImpl[TIsolatedTask](HostSetup hostSetup, StatusReporter statusReporter, Object[] args) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line 93
   at Gallio.Model.DotNetTestDriver.ExploreOrRunAssembly(ITestIsolationContext testIsolationContext, TestPackage testPackage, TestExplorationOptions testExplorationOptions, TestExecutionOptions testExecutionOptions, RemoteMessageSink remoteMessageSink, IProgressMonitor progressMonitor, String taskName, FileInfo file) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 196
   at Gallio.Model.DotNetTestDriver.ExploreOrRun(ITestIsolationContext testIsolationContext, TestPackage testPackage, TestExplorationOptions testExplorationOptions, TestExecutionOptions testExecutionOptions, IMessageSink messageSink, IProgressMonitor progressMonitor, String taskName) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 157
   at Gallio.Model.DotNetTestDriver.ExploreImpl(ITestIsolationContext testIsolationContext, TestPackage testPackage, TestExplorationOptions testExplorationOptions, IMessageSink messageSink, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 140
   at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.<>c__DisplayClass1b.<ExploreImpl>b__19(ITestDriver driver, IList`1 items, Int32 driverCount) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 443
   at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](MultiMap`2 testFrameworkPartitions, Func`4 func) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 525
   --- End of inner exception stack trace ---
   at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](MultiMap`2 testFrameworkPartitions, Func`4 func) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 536
   at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ExploreImpl(ITestIsolationContext testIsolationContext, TestPackage testPackage, TestExplorationOptions testExplorationOptions, IMessageSink messageSink, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 436
   at Gallio.Runner.DefaultTestRunner.Explore(TestPackage testPackage, TestExplorationOptions testExplorationOptions, IProgressMonitor progressMonitor) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runner\DefaultTestRunner.cs:line 241

Original issue reported on code.google.com by MarkBorc...@gmail.com on 18 Oct 2010 at 2:06

GoogleCodeExporter commented 8 years ago
Unfortunately I can't reproduce the error. The xUnit test adapter seems to 
works fine with Icarus. Could you please provide a sample code that illustrate 
the issue?

It's perhaps due to a particular xUnit test pattern you use in your code and 
which causes an error during the exploratory phase.

Original comment by Yann.Tre...@gmail.com on 21 Oct 2010 at 1:55