google-code-export / mb-unit

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

ArgumentException when loading a test DLL from the command line #689

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Gallio 3.2 build 517
Windows 7 x64, .NET Framework 4.0.30319

Running Icarus from the command line and passing in the test DLL as a parameter 
like this: "C:\Program Files\Gallio\bin\Gallio.Icarus.exe" 
"C:\Path\To\UnitTests.dll" causes the following exception. Running Icarus 
without the DLL as a command-line parameter and then adding the .DLL via the 
GUI works correctly.

System.ArgumentException: Tree view category cannot be null or empty.
   at Gallio.Icarus.Models.TestTreeModel.BuildTestTree(IProgressMonitor progressMonitor, TestModelData testModelData, TreeBuilderOptions options)
   at Gallio.Common.Concurrency.LockBox`1.Read(ReadAction`1 action) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\LockBox.cs:line 61
   at Gallio.Icarus.Controllers.TestController.RefreshTestTree(IProgressMonitor progressMonitor)
   at Gallio.Icarus.Controllers.TestController.DoWithTestRunner(Action`1 action, IProgressMonitor progressMonitor, Double initializationAndDisposalWorkUnits, IEnumerable`1 testRunnerExtensions)
   at Gallio.Icarus.Controllers.TestController.Explore(IProgressMonitor progressMonitor, IEnumerable`1 testRunnerExtensions)
   at Gallio.Icarus.Commands.AddFilesCommand.Execute(IProgressMonitor progressMonitor)
Reported by: 
UnhandledExceptionPolicy
   at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T](EventHandler`1 handlerChain, Object sender, T e) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 69
   at Gallio.Common.Concurrency.Task.NotifyTerminated(TaskResult result) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 305
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Original issue reported on code.google.com by sieg...@gmail.com on 22 Jul 2010 at 9:35

GoogleCodeExporter commented 9 years ago
Same error on vista 32 bit.
This used to work fine in 3.1

Original comment by skulc...@gmail.com on 8 Nov 2010 at 5:48