Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Test Case in separate column possible?
GreenMoose
#1 Posted : Thursday, January 25, 2018 12:38:23 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
[v3.12.0.15]

Is it possible to create a separate column for the test case when using e.g. NUnit's TestCase or TestCaseSource, or is this "out of reach" for NCrunch?

(My test names becomes quite long, and then I can't see the important part i.e. the test case).
A quirky workaround would be to right align the text I suppose.


Unrelated question: My "Shortened name" and "Name" columns both display the same thing (test name without namespace), what is the intention of these 2 ?

Thanks.
Remco
#2 Posted : Thursday, January 25, 2018 11:52:25 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Under NUnit3, NCrunch is fully abstracted away from the TestCase/TestCaseSource generation system. It might be possible to infer the use of such a mechanism by deconstructing the test name, but there are drawbacks to such an approach in terms of future proofing and maintainability. I would recommend trying to address this problem by convention rather than tooling if at all possible.

Is there any chance you could give a screenshot showing the readability issue? We're considering making some improvements to the UI at the moment, and knowing where it falls short may help a bit.

The 'Shortened Name' column is identical to the name column in all but one situation: When rendering the name of a fixture under the 'Project, Fixture, Test' grouping option. In this situation, the shortened name does not include the fixture's namespace.
1 user thanked Remco for this useful post.
GreenMoose on 1/26/2018(UTC)
GreenMoose
#3 Posted : Friday, January 26, 2018 7:56:58 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Here's screenshot when using 1 monitor (working from home, less often).
Screenshot 1 horizontal monitor

Screenshot from office setup (3 monitors, test window is located on a secondary monitor standing vertically)

Screenshot vertical monitor
(I removed the server column for now since this solution is not using grid nodes, yet)

As you can see I am more interested in test cases in this scenario than the actual test name since I add test cases as work evolves (which NCrunch seems to have some issues with, a couple of bug reports submitted).

Maybe a neat solution would be to allow one ore several "custom" columns, where you can define the contents somehow with regex and placeholders?
E.g.
Quote:

<customColums>
<column header="TestCase">
<regex input="$ShortenedName$" pattern=".*\((?<testCase>.*)\)$" text="\1"
</column>
</customColums>


1 user thanked GreenMoose for this useful post.
Remco on 1/26/2018(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download