SwensenSoftware / unquote

Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
http://www.swensensoftware.com/unquote
Apache License 2.0
285 stars 26 forks source link

Improve readability of evaluation steps. Add some colors? #153

Open drhumlen opened 4 years ago

drhumlen commented 4 years ago

When the output gets large, it becomes really hard to see where each step starts and ends. Maybe if every other evaluation step had alternating colors or something it would be easier to spot? Or we could add a "----------" divisor line when the output is multiline.. Or even cooler: we could assign a color to each part of the expression and keep that color throughout the evaluation steps so that it's easy to spot which part of the expression evolves to what!

stephen-swensen commented 3 years ago

I like this idea, I agree that large output becomes hard to scan. Alternating colors could be a decent first iteration. I'm intrigued by your "even cooler" idea, but not exactly sure what you mean.

drhumlen commented 3 years ago
Screenshot 2020-10-27 at 13 11 02

I'm envisioning something like this where each part of the original expression is assigned an unique color, which is kept throughout each expansion step so that you can visually see which part becomes which part.

stephen-swensen commented 3 years ago

Ahh - I see - nice!