shekharpro / mb-unit

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

Gallio Icarus Skips tests in some modules #476

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I just converted from MbUnit 2 to Gallio and MbUnit 3.  I am having 
problems with some of my tests being ignored.  I have attached a screen 
shot to show what I mean.  I can't determine why some modules are being 
ignored while others work fine.

I am using Gallio Icarus 3.0.6 Build 787.

Original issue reported on code.google.com by NetRateS...@gmail.com on 18 Jun 2009 at 10:39

Attachments:

GoogleCodeExporter commented 8 years ago
Seems that the tests that were skipped were in TestFixtures that were inside 
other 
classes.  I have put some tests inside partial classes to allow me to test some 
private methods.  I found a few modules that the tests didn't need to be inside 
the 
class, and when I moved them outside the class, they started working.

The only way I can do this for all of my modules is to remove the tests for 
private 
data and methods (or test them via reflection).  

Do you consider this a bug, or is this how MbUnit 3 will work?

Original comment by NetRateS...@gmail.com on 22 Jun 2009 at 5:35

GoogleCodeExporter commented 8 years ago
MbUnit v3 fully supports running tests inside nested classes and we use this 
quite
extensively.

I'll take a look at your code sample shortly.

Original comment by jeff.br...@gmail.com on 11 Aug 2009 at 9:56

GoogleCodeExporter commented 8 years ago
I think this is a bug in how Icarus is building its filter.  It must have some
problems working with nested tests.  I notice that the attached screenshot (was
hoping for a code sample but that's ok) shows Icarus displaying a namespace node
within a type node.

If that's the case, then it's pretty important that we get this fixed in v3.1.

I'm going to refer this one to Graham.

Original comment by jeff.br...@gmail.com on 3 Sep 2009 at 2:11

GoogleCodeExporter commented 8 years ago
Yeah, you're right about the nested fixture. There was a silly bug with the 
namespace
layer (which I've fixed) but I don't think that's the entire problem as my 
nested
fixture ran fine (see attachment). Could you please either a) run your tests 
against
a nightly build or b) provide a code sample that reproduces the issue. Ta.

Original comment by grahamr...@gmail.com on 4 Sep 2009 at 9:20

Attachments:

GoogleCodeExporter commented 8 years ago
I'm getting a similar issue - I have a couple of different namespaces, and the 
tests
within one of those namespaces isn't run when the other ones are not selected.

I'm attaching a Visual C# 2008 express solution for your debugging pleasure :)

Step 1: Build the dll
Step 2: Load the dll in Icarus
Step 3: Select My_Sample_Automation->Some_More_Tests->Class2->TestInsideClass2 
ONLY
Step 4: Run the tests - the test is ignored by Icarus
Step 5: Select My_Sample_Automation->Some_Tests->Class1->TestInsideClass1
Step 6: Run the tests - both tests are now run by Icarus

Tested on Gallio Icarus 3.2 build 385 from GallioBundle-3.2.388.0-Setup-x86.msi

Original comment by gmcdonald@vividas.com on 30 Mar 2010 at 4:32

Attachments:

GoogleCodeExporter commented 8 years ago
This seems to be alright in the trunk. There have been quite a few bugs fixed 
in this
area recently, could you try again with a recent build please?

Original comment by grahamr...@gmail.com on 29 May 2010 at 3:44

GoogleCodeExporter commented 8 years ago
Verified as fixed in GallioBundle-3.2.446.0-Setup-x86, thanks grahamrhay

Original comment by gmcdonald@vividas.com on 30 May 2010 at 11:53

GoogleCodeExporter commented 8 years ago

Original comment by grahamr...@gmail.com on 21 Jul 2010 at 10:02