MudassarRasool / mb-unit

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

problem with loading tests from dll #926

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I successfully build tests written in C# using Visual Studio 2012 Express - 
I obtain relevant dll file.
2. In Gallio Icarus 3.4 I add this dll to the project - but tests are not 
loaded; just nothing happens except the dll file itself is added to the 
project. Version 32-bit and 64-bit has been checked against this.
3.In Gallio Icarus 3.3.458 loading same dll causes exception:

System.InvalidOperationException: Elementów Invoke lub BeginInvoke nie można 
wywołać w formancie do czasu utworzenia uchwytu okna.
HResult: -2146233079
   w System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   w System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args)
   w Gallio.Icarus.Logging.RuntimeLogger.LogImpl(LogSeverity severity, String message, ExceptionData exceptionData)
   w Gallio.Runtime.Logging.DispatchLogger.Data.Dispatch(LogSeverity severity, String message, ExceptionData exceptionData) w c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runtime\Logging\DispatchLogger.cs:wiersz 85
Reported by: 
UnhandledExceptionPolicy
   w Gallio.Common.Concurrency.LockBox`1.Read(ReadAction`1 action) w c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Common\Concurrency\LockBox.cs:wiersz 61
   w Gallio.Runner.DefaultTestRunner.TappedLogger.Handle(LogSeverity severity, String message, ExceptionData exceptionData, Boolean log) w c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runner\DefaultTestRunner.cs:wiersz 879
   w Gallio.Runner.DefaultTestRunner.TappedLogger.LogImpl(LogSeverity severity, String message, ExceptionData exceptionData) w c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runner\DefaultTestRunner.cs:wiersz 859
   w Gallio.Runtime.Hosting.IsolatedProcessHost.LogConsoleOutputWriteBufferedMessageSync() w c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:wiersz 323
   w Gallio.Runtime.Hosting.IsolatedProcessHost.LogConsoleOutput(Object sender, DataReceivedEventArgs e) w c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:wiersz 296
   w Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T](EventHandler`1 handlerChain, Object sender, T e) w c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:wiersz 69
   w System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
   w System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
   w System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
   w System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   w System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
   w System.Threading.Tasks.Task.FinishContinuations()
   w System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
   w System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   w System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   w System.Threading.ThreadPoolWorkQueue.Dispatch()

What is the expected output? What do you see instead?
Expected behaviour is that all relevant test from the built solution are loaded 
so that they can be run in Icarus.

What version of the product are you using? On what operating system?

Gallio 3.3, 3.4 32-bit, 3.4 64-bit
Visual Studio C# 2012 Express for Windows Desktoop 05695-004-0030004-02623(VS 
for Web also has been checked) 

Please provide any additional information below.

Same dll file works as expected with Icarus 3.3 in enviroment, which differs 
only by Visual Studio version - there is VS 2010 Professional 10.0.40219.1 
SP1Rel in that environment.

Original issue reported on code.google.com by pbsleczk...@gmail.com on 23 Aug 2013 at 11:49

GoogleCodeExporter commented 8 years ago
Bump up. Anybody can say something about this?

Original comment by p...@parm.pl on 4 Oct 2013 at 12:22