Fuchu icon indicating copy to clipboard operation
Fuchu copied to clipboard

add ability to customize default printers

Open slav opened this issue 8 years ago • 3 comments

"run" and "runParallel" customize TestPrinters.Default and use it to print outputs for failed and exceptions. It would be nice to provide a way to either customize TestPrinters.Default or allow run/runParallel take custom TestPrinters.

My goal is to have verbose printing and print information about passed tests.

It would also be nice to somehow print progress. Perhaps pass to BeforeRun # of test about to be run / # of tests total?

slav avatar Aug 10 '16 23:08 slav

Yes, this would make sense.

wallymathieu avatar Nov 12 '20 07:11 wallymathieu

I've added additional functions in order to simplify this scenario. You can also look at how it's done in the teamcity implementation.

wallymathieu avatar Nov 22 '20 09:11 wallymathieu

https://github.com/mausch/Fuchu/blob/4cae84092d8832579ab01b68fa7781c65ee7c34f/Fuchu/Fuchu.fs#L608-L613

See for instance the runParallelPrint. I had the same need as you when I did the Fable integration.

wallymathieu avatar Nov 22 '20 09:11 wallymathieu