Struggling with testing a console app #912
-
Hi, I'm struggling to get testing to work. I have a table my console app is generating, now I'd like to create a test to verify the output, but I can't find an example in the docs. Currently my test looks a bit like:
The issue is that the text, for some reason, is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@samsmithnz i wouldn't recommend using the Take a look at the tests in Spectre.Console. We use the |
Beta Was this translation helpful? Give feedback.
-
Hello @samsmithnz, I plan to address this discussion more thoroughly in PR #1631 over the coming weeks. |
Beta Was this translation helpful? Give feedback.
@samsmithnz i wouldn't recommend using the
AnsiConsole
for tests.Take a look at the tests in Spectre.Console. We use the
TestConsole
part of theSpectre.Console.Testing
package.