Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty-print F# value types using NUnit 3.2 custom formatters #86

Closed
sergey-tihon opened this issue Feb 8, 2016 · 1 comment
Closed

Comments

@sergey-tihon
Copy link
Member

TestContext.AddFormatter(ValueFormatterFactory(fun _ -> ValueFormatter(sprintf "%A")))

depends on https://github.com/nunit/nunit/milestones/3.2
implemented in nunit/nunit#1196

@sergey-tihon
Copy link
Member Author

Released in 2.1.0
and require initialization code in test assembly if FsUnit referenced as assembly from NuGet

open FsUnit

type InitMsgUtils() =
    inherit FSharpCustomMessageFormatter()

nothing required if you reference FsUnit.fs using Paket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant