xunit / devices.xunit

xUnit.net Runners for Devices
Other
73 stars 36 forks source link

How do I view/display test results? #172

Open AdamDiament opened 1 year ago

AdamDiament commented 1 year ago

I have an android test runner app set up and the tests are being hit when running on device. However, I do not see results anywhere.

I've tried stuff like this in the oncreate

           var sw = new StringWriter();
            Debug.Listeners.Add(new TextWriterTraceListener(sw));
            ResultChannel = new TextWriterResultChannel(sw);
            await ResultChannel.OpenChannel("Opening the channel");

and

Console.SetOut(sw);
Writer = sw

But nothing is written to output anywhere

This video https://www.youtube.com/watch?v=Mw5lODrvELk&ab_channel=XamarinDevelopers has an Android test app with some nice ui and the ability to run the tests and output results to the screen. Is the code for this available somewhere?

Thanks very much