-
-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Description
Could we have customisable pretty printing for failing assertions? As per our gitter discussion:
trait utest.testSuite {
type Printer[_]
def prettyprint[T : Printer](t: T): Iterator[String]
...
}
This would then allow things like:
object MyTestSuite extends TestSuite with PPrinter {
...
}
where PPrinter
is something like:
trait PPrinter {
self : TestSuite =>
type Printer = pprint.PPrint
def prettyprint[T: pprint.PPrint](t: T) = pprint.tokenize(t)
}
Metadata
Metadata
Assignees
Labels
No labels