joaquimcid / mb-unit

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

Category Filter seems broken in Gallio.Echo #535

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run a test with a filter of "/f:Category:Blah"

What is the expected output? What do you see instead?
Expect to not see the program bomb.  The tests do run but I also get:

Internal error: An exception occurred while disposing the test host.
System.MissingMethodException: Method not found: 'Boolean
System.Threading.WaitHandle.WaitOne(System.TimeSpan)'.

What version of the product are you using? On what operating system?
v3.1 Build 313, Win XP Pro

Please provide any additional information below.
:)

C:\Program Files\Gallio\bin>Gallio.Echo.exe "c:\Visual Source Safe
Projects\StudyMonitor\4.7\DotNet\Cet.Derm\Cet.Derm.UnitTests\bi
n\Debug\Cet.Derm.UnitTests.dll" "/f:Category:Business" /rt:text

Gallio Echo - Version 3.1 build 313
Get the latest version at http://www.gallio.org/

Start time: 3:26 PM
Initializing the runtime and loading plugins.
Verifying test files.
Initializing the test runner.
Running the tests.
Internal error: An exception occurred while disposing the test host.
System.MissingMethodException: Method not found: 'Boolean
System.Threading.WaitHandle.WaitOne(System.TimeSpan)'.
   at
Gallio.Common.Concurrency.ProcessTask.WaitForConsoleToBeCompletelyReadOnceProces
sHasExited()
   at Gallio.Common.Concurrency.ProcessTask.HandleProcessExit() in
c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Common\Concurrency\ProcessTas
k.cs:line 402
   at
Gallio.Common.Concurrency.ProcessTask.<StartProcessExitDetection>b__1(Object 
param0,
EventArgs param1) in c:\RelEng\Projects\MbUnit v3.1\Work\sr
c\Gallio\Gallio\Common\Concurrency\ProcessTask.cs:line 390
   at System.Diagnostics.Process.OnExited()
   at System.Diagnostics.Process.RaiseOnExited()
   at System.Diagnostics.Process.WaitForExit(Int32 milliseconds)
   at Gallio.Common.Concurrency.ProcessTask.JoinImpl(Nullable`1 timeout) in
c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Common\Concurrency\P
rocessTask.cs:line 421
   at Gallio.Common.Concurrency.Task.Join(Nullable`1 timeout) in
c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line
 244
   at Gallio.Runtime.Hosting.IsolatedProcessHost.FreeResources(Boolean
abortImmediately) in c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Runt
ime\Hosting\IsolatedProcessHost.cs:line 388
   at Gallio.Runtime.Hosting.IsolatedProcessHost.Dispose(Boolean disposing)
in c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Runtime\Hosting\I
solatedProcessHost.cs:line 134
   at Gallio.Runtime.Hosting.BaseHost.Dispose() in
c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Runtime\Hosting\BaseHost.cs:line 63
   at
Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskInHost[TIsolate
dTask](HostSetup
hostSetup, StatusReporter statusReporter, Objec
t[] args) in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line
161
Reported by:
UnhandledExceptionPolicy
   at
Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskInHost[TIsolate
dTask](HostSetup
hostSetup, StatusReporter statusReporter, Objec
t[] args) in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line
165
   at
Gallio.Model.Isolation.HostedTestIsolationContext.RunIsolatedTaskImpl[TIsolatedT
ask](HostSetup
hostSetup, StatusReporter statusReporter, Object[
] args) in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Model\Isolation\HostedTestIsolationContext.cs:line
93
   at
Gallio.Model.Isolation.BaseTestIsolationContext.RunIsolatedTask[TIsolatedTask](H
ostSetup
hostSetup, StatusReporter statusReporter, Object[] args
) in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Model\Isolation\BaseTestIsolationContext.cs:line 59
   at
Gallio.Model.DotNetTestDriver.ExploreOrRunAssembly(ITestIsolationContext
testIsolationContext, TestPackage testPackage, TestExplorationOptions t
estExplorationOptions, TestExecutionOptions testExecutionOptions,
RemoteMessageSink remoteMessageSink, IProgressMonitor progressMonitor,
String taskNa
me, FileInfo file) in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 196
   at Gallio.Model.DotNetTestDriver.ExploreOrRun(ITestIsolationContext
testIsolationContext, TestPackage testPackage, TestExplorationOptions testExplo
rationOptions, TestExecutionOptions testExecutionOptions, IMessageSink
messageSink, IProgressMonitor progressMonitor, String taskName) in c:\RelEng\Pr
ojects\MbUnit v3.1\Work\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 157
   at Gallio.Model.DotNetTestDriver.RunImpl(ITestIsolationContext
testIsolationContext, TestPackage testPackage, TestExplorationOptions
testExploratio
nOptions, TestExecutionOptions testExecutionOptions, IMessageSink
messageSink, IProgressMonitor progressMonitor) in c:\RelEng\Projects\MbUnit
v3.1\Wor
k\src\Gallio\Gallio\Model\DotNetTestDriver.cs:line 150
   at Gallio.Model.BaseTestDriver.Run(ITestIsolationContext
testIsolationContext, TestPackage testPackage, TestExplorationOptions
testExplorationOptio
ns, TestExecutionOptions testExecutionOptions, IMessageSink messageSink,
IProgressMonitor progressMonitor) in c:\RelEng\Projects\MbUnit v3.1\Work\src\
Gallio\Gallio\Model\BaseTestDriver.cs:line 105
   at
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.<>c__DisplayClass22.
<RunImpl>b__20(ITestDriver
driver, IList`1 items, Int32 driverCo
unt) in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 452
   at
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](Mul
tiMap`2
testFrameworkPartitions, Func`4 func) in c:\RelEng\Proje
cts\MbUnit
v3.1\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 511
   at
Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.RunImpl(ITestIsolati
onContext
testIsolationContext, TestPackage testPackage, TestExp
lorationOptions testExplorationOptions, TestExecutionOptions
testExecutionOptions, IMessageSink messageSink, IProgressMonitor
progressMonitor) in c:\R
elEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Model\DefaultTestFrameworkManager.cs:line 444
   at Gallio.Model.BaseTestDriver.Run(ITestIsolationContext
testIsolationContext, TestPackage testPackage, TestExplorationOptions
testExplorationOptio
ns, TestExecutionOptions testExecutionOptions, IMessageSink messageSink,
IProgressMonitor progressMonitor) in c:\RelEng\Projects\MbUnit v3.1\Work\src\
Gallio\Gallio\Model\BaseTestDriver.cs:line 105
   at Gallio.Runner.DefaultTestRunner.Run(TestPackage testPackage,
TestExplorationOptions testExplorationOptions, TestExecutionOptions
testExecutionOp
tions, IProgressMonitor progressMonitor) in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Runner\DefaultTestRunner.cs:line 314
   at
Gallio.Runner.TestLauncher.<>c__DisplayClass14.<DoExploreOrRun>b__13(IProgressMo
nitor
progressMonitor) in c:\RelEng\Projects\MbUnit v3.1\Work\sr
c\Gallio\Gallio\Runner\TestLauncher.cs:line 823
   at
Gallio.Runner.TestLauncher.<>c__DisplayClass18.<RunWithProgress>b__16(IProgressM
onitor
progressMonitor) in c:\RelEng\Projects\MbUnit v3.1\Work\s
rc\Gallio\Gallio\Runner\TestLauncher.cs:line 875
   at
Gallio.Runtime.ProgressMonitoring.BaseProgressMonitorProvider.Run(TaskWithProgre
ss
task) in c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Galli
o\Runtime\ProgressMonitoring\BaseProgressMonitorProvider.cs:line 35
   at Gallio.Runner.TestLauncher.RunWithProgress(TaskWithProgress task,
Boolean& canceled) in c:\RelEng\Projects\MbUnit v3.1\Work\src\Gallio\Gallio\Ru
nner\TestLauncher.cs:line 858
   at Gallio.Runner.TestLauncher.DoExploreOrRun(ITestRunner runner,
TestPackage testPackage, Boolean& canceled) in c:\RelEng\Projects\MbUnit
v3.1\Work
\src\Gallio\Gallio\Runner\TestLauncher.cs:line 827
   at Gallio.Runner.TestLauncher.RunWithInitializedRunner(ITestRunner
runner, TestProject consolidatedTestProject, IReportManager reportManager)
in c:
\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Runner\TestLauncher.cs:line 563
   at Gallio.Runner.TestLauncher.RunWithRuntime() in
c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Runner\TestLauncher.cs:line 544
   at Gallio.Runner.TestLauncher.Run() in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio\Runner\TestLauncher.cs:line 474
   at Gallio.Echo.EchoProgram.RunTests(ILogger logger)
   at Gallio.Echo.EchoProgram.RunImpl(String[] args)
   at Gallio.Runtime.ConsoleSupport.ConsoleProgram`1.Run(IRichConsole
console, String[] args) in c:\RelEng\Projects\MbUnit
v3.1\Work\src\Gallio\Gallio
\Runtime\ConsoleSupport\ConsoleProgram.cs:line 198
   at Gallio.Echo.EchoProgram.Main(String[] args)

Generating reports.
Disposing the test runner.
Stop time: 3:26 PM (Total execution time: 8.839 seconds)

213 run, 213 passed, 0 failed, 0 inconclusive, 0 skipped

Original issue reported on code.google.com by hecktarz...@gmail.com on 15 Sep 2009 at 8:40

GoogleCodeExporter commented 8 years ago
If I specify a different type of filter, again the filter does work, but the 
same
error above occurs.

Example:
C:\Program Files\Gallio\bin>Gallio.Echo.exe "c:\Visual Source Safe Proje
n\Debug\Cet.Derm.UnitTests.dll" /f:ExactType:ApprovalsBLTests

Original comment by hecktarz...@gmail.com on 15 Sep 2009 at 8:57

GoogleCodeExporter commented 8 years ago
This is also happening in Icarus when I load assemblies.

Original comment by hecktarz...@gmail.com on 16 Sep 2009 at 2:12

GoogleCodeExporter commented 8 years ago
I created a single test DLL with 1 assert (Assert.AreEqual(1,1);) and used only 
1
reference (MbUnit.Framework.dll v2.4.2.355) and it still does it in Icarus (and
probably echo too).

Original comment by hecktarz...@gmail.com on 16 Sep 2009 at 2:27

GoogleCodeExporter commented 8 years ago
Oh dear! It's using a method overload that is only available in .NET 3.5 SP1, I
thought we'd got rid of that one, sorry.

Original comment by grahamr...@gmail.com on 16 Sep 2009 at 5:56

GoogleCodeExporter commented 8 years ago
So, for now would installing .NET 3.5 SP1 solve the problem?  Otherwise, wait 
until
the next release?

Original comment by hecktarz...@gmail.com on 16 Sep 2009 at 6:47

GoogleCodeExporter commented 8 years ago
Also, if .NET 3.5 SP1 is needed for Gallio v3.1 to function, I would recommend 
adding
that to your release notes and to your installation requirements list, if there 
is
one (I couldn't find it).

Original comment by hecktarz...@gmail.com on 16 Sep 2009 at 7:03

GoogleCodeExporter commented 8 years ago
Correct. It's not intentional, I've amended it to use the overload available 
pre-SP1
in the trunk.

Original comment by grahamr...@gmail.com on 16 Sep 2009 at 7:39

GoogleCodeExporter commented 8 years ago
Graham, please backport this fix to the v3.1 branch too.  I'll do an update 
release
in a week or so.

Original comment by jeff.br...@gmail.com on 17 Sep 2009 at 8:53