Is it possible to select a color for printed text in the NUnit console?
Let's say that I'd like to visualize the output of NUnit tests in the Rider console as color coded letters (ex: RRGRYBY) wherein R should appear Red, G should appear Green, Y should appear Yellow and B should appear Blue.
I understand that I can print these letters using TestContext.Out.Write(myLetter);. However, I do not know how, or if, I can specify a color for that letter.
Is it possible to print these letters using specified colors per letter? If so, how does one do this?
Please sign in to leave a comment.
Hi Tony!
I suppose this is not possible. I believe the best way to implement it would be to develop a plugin.
There are a lot of articles and tutorials about how to develop IntelliJ plugins:
- Rider sample plugin;
- An article about Rider Frontend plugin development;
- Creating Your First Plugin.
Here is a link to the Rider plugin collection. Moreover, we have a slack channel #dotnet-pluginwriters where our plugin writers can ask Rider/R#/IJ developers. Just let me know if you want to be added there.
Feel free to ask any questions. Have a great day!