MudassarRasool / mb-unit

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

Category mechanism not working #827

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I upgraded a project containing 186 tests from mbUnit 3.0.6 to 3.2.3

Rebuild went fine, no problem.

When I run the dll in Icarus, it sees only a fraction of the tests.  I use the 
"Category" filter (not the default "Namespace" one) in the Test Explorer tab.

Most of the tests have 3-6 categories defined.  For instance:

    [Test]
    [Author("Roger P.")]
    [MultipleAsserts]
    [Category("CoreTCPFrameFormat")]
    [Category("L3IPv4")]
    [Category("SanityShort")]
    public void EthVlan3MplsIpv4Tcp()

The category "SanityShort" contains 11 tests for instance.  But with Icarus 
3.2, it only sees 3.  The same happens with every categories I checked.  
Another category contains exactly 50 tests, but Icarus only sees 7.  There are 
even some empty categories in Icarus; real categories that have been defined, 
and that Icarus seemed to have recognized, but they don't contain any tests.

I tested the same DLL on two computers (both upgraded to 3.2.3): same results.

Normally, each test would appear as many times as how many categories it was 
defined with.  Could it be possible that now each test would appear only once 
in the Test Explorer tab?

Original issue reported on code.google.com by pol.ra...@gmail.com on 22 Mar 2011 at 6:39

GoogleCodeExporter commented 8 years ago

Original comment by grahamr...@gmail.com on 1 Oct 2011 at 4:02

GoogleCodeExporter commented 8 years ago
Fixed.

It looks like the TreeViewAdv (the 3rd party component the Test Explorer uses) 
changed to ensure a node could only be underneath one parent.

The test node will now appear in all categories, but there are still some 
inconsistencies that should be addressed:

1) When the test is selected in one category, it is not necessarily in the other
2) The test appears to run multiple times (once per category), could just be a 
presentation issue though
3) The indentation in the Test Results view gets confused when in metadata mode.

Original comment by grahamr...@gmail.com on 1 Oct 2011 at 5:17

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 2 Oct 2011 at 12:02