TD.NET 2.23.2494 Personal

Here is the complete console output:
===============================================================================
------ Test started: Assembly: LibraryTest.dll ------

Gallio TestDriven.Net Runner - Version 3.0.6 build 787

Test Assemblies:
        C:\Home\work\MbUnitEval\LibraryTest\bin\Debug\LibraryTest.dll

Start time: 4:12 PM
Verifying assembly names.
Initializing the test runner.
Running the tests.
Disposing the test runner.
Stop time: 4:12 PM (Total execution time: 1.360 seconds)

Test Report: 
file:///C:/Documents%20and%20Settings/mark.kharitonov/Local%20Settings/Temp/Gallio.TDNetRunner/LibraryTest.dll.html
** NO TESTS WERE RUN (No tests found) **
TestCase 'M:LibraryTest.DebuggingTest.TestMethod``1'
failed: Late bound operations cannot be performed on types or methods
for which ContainsGenericParameters is true.
        System.InvalidOperationException: Late bound operations cannot be
performed on types or methods for which ContainsGenericParameters is
true.
        at System.Reflection.RuntimeMethodInfo.ThrowNoInvokeException()
        at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture, Boolean skipVisibilityChecks)
        at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
BindingFlags invokeAttr, Binder binder, Object[] parameters,
CultureInfo culture)
        at System.Reflection.MethodBase.Invoke(Object obj, Object[]
parameters)
        at TestDriven.AdHoc.TestRunner.AdHocTestRunner.runAdHoc(ITestListener
testListener, ITraceListener traceListener, String assemblyPath,
String cref)



0 passed, 1 failed, 0 skipped, took 7.52 seconds (Ad hoc).
===============================================================================

As you can see there is Gallio test report and its summary is "This
report does not contain any test runs."
The diagnostic log is empty.



On Aug 13, 2:17 pm, "Jeff Brown" <[email protected]> wrote:
> Ignore the TDNet AdHoc runner.  (BTW, which version of TDNet are you
> running?)
>
> What else is being printed?  Does Gallio emit a test report?
>
> Jeff.
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of Mark Kharitonov
> Sent: Thursday, August 13, 2009 3:41 AM
> To: MbUnit.User
> Subject: MbUnit Re: Generic test method for dynamically generated types.
>
> I still have problems with generic test methods.
>
> In the solution I have attached here 
> -http://mbunituser.googlegroups.com/web/MbUnitEval+(2).zip?gda=R4yycUg...
> rdfs5hXqAENFivGUcUmHDJvZsuwprcZE_nuKgy49g37qnIxLkzYpijfOzvQLzX-2uOCCpyWy21PU
> ofZtoQGjVgdwNi-BwrUzBGT2hOzg&gsc=CZzp6AsAAABM-gaW-pfbhiAMxD_IvOJm
> there is a file DebuggingTest.cs in the LibraryTest project.
>
> It contains a test method named TestMethod. When it is generic like
> so:
>
>     [Test]
>     public void TestMethod<[Factory("GetTypes")] T>()
>     {
>     }
>
> TestDriven.NET fails to debug/run it with the familiar message:
>
> ** NO TESTS WERE RUN (No tests found) ** TestCase
> 'M:LibraryTest.DebuggingTest.TestMethod``1'
> failed: Late bound operations cannot be performed on types or methods for
> which ContainsGenericParameters is true.
>         System.InvalidOperationException: Late bound operations cannot be
> performed on types or methods for which ContainsGenericParameters is true.
>         at System.Reflection.RuntimeMethodInfo.ThrowNoInvokeException()
>         at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
> BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
> culture, Boolean skipVisibilityChecks)
>         at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
> BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo
> culture)
>         at System.Reflection.MethodBase.Invoke(Object obj, Object[]
> parameters)
>         at
> TestDriven.AdHoc.TestRunner.AdHocTestRunner.runAdHoc(ITestListener
> testListener, ITraceListener traceListener, String assemblyPath, String
> cref)
>
> This happens when I run/debug the method from within the context menu open
> inside the method. Everything works fine when the context menu is open on
> the file itself in the solution explorer or inside the file itself, but
> outside the test method.
>
> No such problem exists if the method is not generic like so:
>     [Test]
>     public void TestMethod([Factory("GetTypes")] Type type)
>     {
>     }
>
> On Aug 12, 10:14 am, "Jeff Brown" <[email protected]> wrote:
> > Just open your project in Visual Studio and set some breakpoints.  
> > Then click the Debug button in Icarus.
>
> > Beware that if you have multiple instances of Visual Studio open,
> > Icarus might not be able to determine which one contains the test
> > projects you are working on.  If it attaches to the wrong debugger
> > then your breakpoints will not be hit.
>
> > Jeff.
>
> >   _____
>
> > From: [email protected] [mailto:[email protected]]
> > On Behalf Of Mark Kharitonov
> > Sent: Tuesday, August 11, 2009 11:25 PM
> > To: [email protected]
> > Subject: MbUnit Re: Generic test method for dynamically generated types.
>
> > Thanks, Jeff.
> > Can you tell me how to utilize the Debug feature of Icarus and Echo?
> > Seems like I miss something, because I do not succeed to debug the
> > tests from within either.
>
> > On 12/08/2009, at 00:03, Jeff Brown wrote:
>
> > The TDNet problem is because the first type defined in the file is not
> > a test fixture.  The actual test fixture is the second type in the
> > file.  When you right-click on the file, TDNet seems to ask Gallio to
> > run that type but not the other top-level types in the file.
>
> > Two workarounds:
>
> > 1. Move OrderedCollectionImplementationFactory to the end of the file
> > so that OrderedCollectionTest comes first.
>
> > 2. Instead of using "Run Test" on the file in the Solution Explorer,
> > right-click on or within the OrderedCollectionTest class in the code
> > editor and use the "Run Test" context action there.
>
> > Jamie:
> > This is where it would be really handy if TDNet could pass Gallio a
> > list of multiple assemblies, namespaces or types/members to run all at
> > once.  In the case where a file contains multiple types it would just
> > pass the list of these types to the test runner instead of
> > (apparently) choosing the first one only.
>
> > Jeff.
>
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]]
> > On
>
> > Behalf Of Mark Kharitonov
> > Sent: Tuesday, August 11, 2009 6:47 AM
> > To: MbUnit.User
> > Subject: MbUnit Re: Generic test method for dynamically generated types.
>
> > The solution is here
> > -http://groups.google.com/group/MbUnitUser/web/MbUnitEval.zip
>
> > On Aug 11, 4:42 pm, Mark Kharitonov <[email protected]> wrote:
>
> > I have isolated the test in a separate assembly. It works now. What I
> > did before is took my original mstest unit test project, commented
> > some stuff, removed some references and so it did not work.
> > There are still a few things I fail to do:
> > 1. When I click "Run Test(s)" on the unit test file in the solution
> > explorer I get this:
> > ====================
> >  ------ Test started: Assembly: LibraryTest.dll ------
>
> > Gallio TestDriven.Net Runner - Version 3.0.6 build 787
>
> > Test Assemblies:
> >         C:\Home\work\MbUnitEval\LibraryTest\bin\Debug\LibraryTest.dll
>
> > Start time: 4:26 PM
> > Verifying assembly names.
> > Initializing the test runner.
> > Running the tests.
> > Disposing the test runner.
> > Stop time: 4:26 PM (Total execution time: 1.470 seconds)
>
> > Test Report:
> > file:///C:/Documents%20and%20Settings/mark.kharitonov/Local%20Settings
> > /Temp/Gallio.TDNetRunner/LibraryTest.dll.html
> > ** NO TESTS WERE RUN (No tests found) ** The target type doesn't
> > contain tests from a known test framework or a 'Main' method.
> > ====================
> > But, if I open this file in the editor, right click and select "Run
> > Test(s)" there I get a clean run:
> > ====================
> > ------ Test started: Assembly: LibraryTest.dll ------
>
> > Gallio TestDriven.Net Runner - Version 3.0.6 build 787
>
> > Test Assemblies:
> >         C:\Home\work\MbUnitEval\LibraryTest\bin\Debug\LibraryTest.dll
>
> > Start time: 4:30 PM
> > Verifying assembly names.
> > Initializing the test runner.
> > Running the tests.
> > TestCase 'MbUnit v3.0.6.787/LibraryTest/OrderedCollectionTest`1/
> > OrderedCollectionTest`1<Library.OrderedCollection<int>>/AddItemUnique'
> > passed.
> > .........................................
> > ..(Deleted 26 lines here)..
> > .........................................
> > TestCase 'MbUnit v3.0.6.787/LibraryTest/OrderedCollectionTest`1/
> > OrderedCollectionTest`1<Library.OrderedObservableCollection<int>>/
> > TrySetItemDuplicate' passed.
> > Disposing the test runner.
> > Stop time: 4:30 PM (Total execution time: 1.912 seconds)
>
> > Test Report:
> > file:///C:/Documents%20and%20Settings/mark.kharitonov/Local%20Settings
> > /Temp/Gallio.TDNetRunner/LibraryTest.dll.html
>
> > 28 passed, 0 failed, 0 skipped, took 2.39 seconds (Gallio_MbUnit).
> > ====================
> > 2. The Debug button in the Icarus GUI just does not work. The first
> > time I clicked it, VS2008 drove me crazy by constantly presenting me
> > with source server dialogs, OKaying all the dialogs did not help - no
> > debug. After that, clicking the Debug button does nothing. Well, it
> > runs the test (I can see it in the status line), but no debugging.
> > 3. Running gallio.echo /debug does not debug as well.
>
> > I guess I am doing something wrong, but what?
> > I will attach the solution momentarily.
>
> > On Aug 11, 1:35 pm, "Jeff Brown" <[email protected]> wrote:
>
> > The TDNet error at the bottom is a red herring.  It's trying to use
> > its Ad-Hoc test runner because Gallio told it that it ran no tests.
> > (The Ad-Hoc test runner is a kind of fallback that TDNet provides but
> > it only works for limited cases.)
>
> > The most likely explanation is that no data has been provided to the
> > test so it will not run.
>
> > If you send me your test code I may be able to help you further.
>
> > Jeff.
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On
>
> > Behalf Of mark Kharitonov
> > Sent: Tuesday, August 11, 2009 2:50 AM
> > To: [email protected]
> > Subject: MbUnit Re: Generic test method for dynamically generated types.
>
> > More Info.
> > I am trying to debug from gallio.icarus with the debug button -
> > nothing happens. No errors either. It just tells - 14 tests - 0 passed
> > - 0 failed - 0 inconclusive - 0 skipped - 0.0s
>
> > Trying Gallio.Echo /debug just prints out this screen:
>
> > C:\Dev\windows\bin\Debug>gallio.echo /debug Test.dll
>
> > Gallio Echo - Version 3.0.6 build 787 Get the latest version
> > athttp://www.gallio.org/
>
> > Start time: 12:35 PM
> > Verifying assembly names.
> > Initializing the runtime and loading plugins.
> > Initializing the test runner.
> > Running the tests.
> > Attaching the debugger to the host.
> > Detaching the debugger from the host.
> > Disposing the test runner.
> > Stop time: 12:35 PM (Total execution time: 3.524 seconds)
>
> > 0 run, 0 passed, 0 failed, 0 inconclusive, 0 skipped
>
> > When I run from TDD.NET, the error message contains this:
>
> > ** NO TESTS WERE RUN (No tests found) ** TestCase
> > 'M:Shunra.Common.Test.OrderedCollectionTest`1.AddItemUnique'
> > failed: Cannot create an instance of
> > Shunra.Common.Test.OrderedCollectionTest`1[T] because
> > Type.ContainsGenericParameters is true.
> >         System.MemberAccessException: Cannot create an instance of
> > Shunra.Common.Test.OrderedCollectionTest`1[T] because
> > Type.ContainsGenericParameters is true.
> >         at
> > System.Reflection.RuntimeConstructorInfo.CheckCanCreateInstance(Type
> > declaringType, Boolean isVarArg)
> >         at
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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