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

Notification

Icon
Error

Allow ASCII colors in Trace Output
macsux
#1 Posted : Thursday, October 31, 2024 2:54:35 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/31/2024(UTC)
Posts: 1
Location: Canada

Our tests use string diffing library that uses ASCII text formatting to highlight text differences. Both visual studio and Rider display this correctly in their outputs, but NCrunch would display just stuff like this:

1|abc␤123
1|abc 123
Remco
#2 Posted : Thursday, October 31, 2024 10:57:11 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 956 times
Was thanked: 1286 time(s) in 1193 post(s)
Thanks for sharing this suggestion. We've actually wanted this ourselves for years, since we also use large trace outputs ourselves, and having the ability to colourise them would be really nice.

We made several attempts at it, but discovered it was actually much harder than we expected it to be due to the levels of optimisation around the text control used to show the trace output. We have an additional constraint that Rider and VS don't: We need to be able to perform a full refresh of the visible trace output without utilising the UI thread for more than 20ms on mid-range hardware. This is because under NCrunch, the tests are re-run while you're working in code, so having the window update itself in an expensive way can have a noticeable impact on the 'drag' inside the IDE.

Difficult is not the same as impossible, and there are potential solutions to this problem, but they require a lot of work, which makes it unlikely that we'll be implementing this.
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.022 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download