Simon Söderman
Simon Söderman

Reputation: 335

Write result to test report in MbUnit with Gallio

Does anybody know if it´s possible to write results to some tracelistener or something that the test-report snaps up and embeds into the test report?

for example, var loans = GetLoans(...parameters); Assert.IsTrue(Loans.Length>0); TestReport.Write("user has :" +loans.Count);

and then have it show up in the test report! Any ideas? :)

Upvotes: 2

Views: 1064

Answers (1)

Jeff Brown
Jeff Brown

Reputation: 1178

TestLog.WriteLine(....)

Also notice that TestLog has support for embedding attachments and creating nested sections within the log.

Upvotes: 3

Related Questions