More Info.
When the test is run from the context menu open on the respective file
in the solution explorer the complete test pane output is:
=======================================================================
------ Test started: Assembly: Shunra.Infra.Test.dll ------

Gallio TestDriven.Net Runner - Version 3.0.6 build 787

Test Assemblies:
        C:\Dev\windows\Infra\Shunra.Infra.Test\..\..\bin\Debug
\Shunra.Infra.Test.dll

Start time: 12:37 PM
Verifying assembly names.
Initializing the test runner.
Running the tests.
[warning] The test was ignored.
        Location: C:\Dev\windows\Infra\Shunra.Infra.Test\EntitiesAssemblies.cs
(122)
Disposing the test runner.
Stop time: 12:38 PM (Total execution time: 10.088 seconds)

Test Report:
file:///C:/Documents%20and%20Settings/mark.kharitonov/Local%20Settings/Temp/Gallio.TDNetRunner/Shunra.Infra.Test.dll.html
The target type doesn't contain tests from a known test framework or a
'Main' method.
=======================================================================

VERY STRANGE. TD.NET does not seems to recognize the tests, but they
are run correctly anyway! The respective Gallio Test Report indicates
that all the tests in the file were run correctly.

I am confused.
Thanks.

On Aug 15, 12:36 pm, Mark Kharitonov <[email protected]>
wrote:
> Hi Jamie.
> I will try to.
>
> I think your analysis is incomplete, because in the described scenario
> there are 7 test steps and TD.NET executes them all fine, except that
> it also adds another test step, passing default values in the test
> parameters and it appears to do so after Gallio has already finalized
> the test report for the previous 7 test steps.
>
> I also forgot to mention, that when I run the tests from the context
> menu open on the file in the solution explorer, everything works
> correctly.
> Thanks.
>
> On Aug 15, 12:23 pm, Jamie Cansdale <[email protected]> wrote:
>
>
>
> > Hi Mark,
>
> > It looks like TestDriven.Net isn't being informed about the Gallio
> > test that ran. Because it thinks no tests have been executed yet, it
> > goes on the execute the method as an 'ad hoc' test (seehttp://bit.ly/rbMDc).
>
> > Could you try copying you test project and stripping it down until you
> > have a minimal repro?
>
> > Regards,
> > Jamie.
>
> > --http://www.testdriven.nethttp://twitter.com/jcansdalehttp://weblogs.a...
>
> > On Sat, Aug 15, 2009 at 11:11 AM, Mark
>
> > Kharitonov<[email protected]> wrote:
>
> > > I am attaching VS snapshot 
> > > -http://groups.google.com/group/MbUnitUser/web/VSSnapShot.JPG
>
> > > The snapshot displays 4 areas:
> > > * The source code editor, stopped on a breakpoint. Note the ctx
> > > parameter to the test method.
> > > * The watch window, displaying the ctx parameter. Note the value is
> > > null.
> > > * The test output pane. Note, that the test has already finished and
> > > the test report is ready!
> > > * The Gallio test report, where one can clearly see that the test has
> > > already finished and succeeded.
>
> > > HOWEVER, TD.NET runs the test method one more time passing null in the
> > > ctx parameter. This is done AFTER the test is finished from Gallio
> > > point of view - it has already created a test report indicating the
> > > success of the test.
> > > Needless to say, that the test factory method -
> > > EnumerateAllHierarchyPoliciesWithRoot never yields the null reference.
> > > This is extremely strange and I could not reproduce it with a trivial
> > > example.
>
> > > The complete test pane output looks like this:
> > > =======================================================================
> > > ------ Test started: Assembly: Shunra.Infra.Test.dll ------
>
> > > Gallio TestDriven.Net Runner - Version 3.0.6 build 787
>
> > > Test Assemblies:
> > >        C:\Dev\windows\Infra\Shunra.Infra.Test\..\..\bin\Debug
> > > \Shunra.Infra.Test.dll
>
> > > Start time: 11:43 AM
> > > Verifying assembly names.
> > > Initializing the test runner.
> > > Running the tests.
> > > [warning] The test was ignored.
> > >        Location: 
> > > C:\Dev\windows\Infra\Shunra.Infra.Test\EntitiesAssemblies.cs
> > > (122)
> > > Disposing the test runner.
> > > Stop time: 11:46 AM (Total execution time: 188.520 seconds)
>
> > > Test Report:
> > > file:///C:/Documents%20and%20Settings/mark.kharitonov/Local%20Settings/Temp­­/Gallio.TDNetRunner/Shunra.Infra.Test.dll.html
> > > =======================================================================
>
> > > Note, that no test steps are displayed, despite the fact that 7 test
> > > steps were executed - they are clearly reported in the Gallio Test
> > > Report.
>
> > > Another strange thing is the call stack at this moment (and I remind
> > > you, that the test is already finished as far as Gallio is concerned)
> > > Here it is:
> > > =======================================================================
>
> > >>       
> > >> Shunra.Infra.Test.dll!Shunra.Infra.Test.Entities.RootIsDefined(Shunra.Infra­­.Test.IEntityContext
> > >>  ctx = null) Line 436    C#
> > >        [Native to Managed Transition]
> > >        [Managed to Native Transition]
> > >        TestDriven.AdHoc.dll!
> > > TestDriven.AdHoc.TestRunner.AdHocTestRunner.runAdHoc
> > > (TestDriven.TestRunner.Framework.ITestListener testListener =
> > > {TestDriven.TestRunner.ThreadTestRunner.ThreadTestListener},
> > > TestDriven.TestRunner.Framework.ITraceListener traceListener =
> > > {TestDriven.TestRunner.ThreadTestRunner.ThreadTraceListener}, string
> > > assemblyPath = "C:\\Dev\\windows\\Infra\\Shunra.Infra.Test\\..\\..\\bin
> > > \\Debug\\Shunra.Infra.Test.dll", string cref =
> > > "M:Shunra.Infra.Test.Entities.RootIsDefined
> > > (Shunra.Infra.Test.IEntityContext)") + 0x45a bytes
> > >        
> > > TestDriven.AdHoc.dll!TestDriven.AdHoc.TestRunner.AdHocTestRunner.Run
> > > (TestDriven.TestRunner.Framework.ITestListener testListener =
> > > {TestDriven.TestRunner.ThreadTestRunner.ThreadTestListener},
> > > TestDriven.TestRunner.Framework.ITraceListener traceListener =
> > > {TestDriven.TestRunner.ThreadTestRunner.ThreadTraceListener}, string
> > > assemblyPath = "C:\\Dev\\windows\\Infra\\Shunra.Infra.Test\\..\\..\\bin
> > > \\Debug\\Shunra.Infra.Test.dll", string testPath =
> > > "M:Shunra.Infra.Test.Entities.RootIsDefined
> > > (Shunra.Infra.Test.IEntityContext)") + 0x8c bytes
> > >        
> > > TestDriven.TestRunner.dll!TestDriven.TestRunner.AdaptorTestRunner.Run
> > > (TestDriven.TestRunner.Framework.ITestListener testListener =
> > > {TestDriven.TestRunner.ThreadTestRunner.ThreadTestListener},
> > > TestDriven.TestRunner.Framework.ITraceListener traceListener =
> > > {TestDriven.TestRunner.ThreadTestRunner.ThreadTraceListener}, string
> > > assemblyPath = "C:\\Dev\\windows\\Infra\\Shunra.Infra.Test\\..\\..\\bin
> > > \\Debug\\Shunra.Infra.Test.dll", string testPath =
> > > "M:Shunra.Infra.Test.Entities.RootIsDefined
> > > (Shunra.Infra.Test.IEntityContext)") + 0xb8 bytes
> > >        TestDriven.TestRunner.dll!
> > > TestDriven.TestRunner.ThreadTestRunner.Runner.Run() + 0x68 bytes
> > >        mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context
> > > (object state = {System.Threading.ThreadHelper}) + 0xac bytes
> > >        mscorlib.dll!System.Threading.ExecutionContext.Run
> > > (System.Threading.ExecutionContext executionContext,
> > > System.Threading.ContextCallback callback, object state) + 0x5a bytes
> > >        mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x61
> > > bytes
> > >        [Appdomain Transition]
> > > =======================================================================
>
> > > Unfortunately, I am unable to reproduce it in a trivial example, but
> > > in my solution it is 100% reproducable.
> > > Any ideas?
> > > Thanks.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to