Better test labels for console runner

Bug #427171 reported by Kenneth Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Fix Released
Medium
Charlie Poole

Bug Description

Below are examples of console runner printed test labels:
***** Spring.Threading.Collections.Generic.LinkedBlockingQueueTest`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].CopyToChokesWithNullArray
***** Spring.Threading.Collections.Generic.LinkedBlockingQueueTest`1+AsNonGenericTest[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].IsEmptyReturnsTrueWhenQueueIsEmptyElseFalse

There are two issues:
   1. Labels for generic and inner test fixture are difficult to read.
   2. The parameters of parameterized test fixture are not shown.

Would like to see something like this:
***** Spring.Threading.Collections.Generic.LinkedBlockingQueueTest<string>(isCapacityRestricted=false).CopyToChokesWithNullArray
***** Spring.Threading.Collections.Generic.LinkedBlockingQueueTest<string>.AsNonGenericTest(isCapacityRestricted=false).IsEmptyReturnsTrueWhenQueueIsEmptyElseFalse

Additional Notes:
  1. Charlie likes "+" for inner class.
  2. Be careful of "<string>" in the xml output.
  3. For detail see: http://groups.google.com/group/nunit-discuss/browse_thread/thread/41de66608c20ec0c?hl=en

Changed in nunitv2:
importance: Undecided → Medium
status: New → Confirmed
Changed in nunitv2:
status: Confirmed → Triaged
Changed in nunitv2:
milestone: none → 2.5.3
Changed in nunitv2:
assignee: nobody → Charlie Poole (charlie.poole)
Revision history for this message
Charlie Poole (charlie.poole) wrote :

@Kenneth: It would be helpful if you could test this from trunk. It works for all my test cases.

Changed in nunitv2:
status: Triaged → Fix Committed
Revision history for this message
Kenneth Xu (x-launchpad-homexu-com) wrote :

Nice! I have just tested the trunk through 3067 test cases in Spring.Threading project. The labels are looking good. They are all same as what are shown in GUI. Thanks!

Changed in nunitv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.