-
Notifications
You must be signed in to change notification settings - Fork 78
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
Remove doubled exception message from nunit #167
Remove doubled exception message from nunit #167
Conversation
I'm not quite lucky about the |
I am not sure about... type InitMsgUtils() =
inherit FSharpCustomMessageFormatter() I (somehow) missed this line in docs for years and I think that I am not along here. Can we remove |
Yes, I agree. I will overthink this approach to have a neat implementation that nobody have to add this piece of code to their implementation. It's not quite intuitive. Now: When we remove Goal: Removing I go for it. |
It now works, @sergey-tihon. I removed
Edit: We could remove |
https://docs.nunit.org/articles/nunit/writing-tests/attributes/setupfixture.html
It should be defined in Looks like there is no better way to add custom formatter to NUnit rather than |
Do we another chance leave it like it is? or do you have another plan?
And |
I think that we can merge this PR as it is and improve FsUnit docs with information that
We cannot cover all cases from out code =( because user can directly can NUnit functions without FsUnit operators. |
I think there are two ways to use it: We could add the docs changes in this PR, couldn't we?! |
yes, sure
I do not see an easy way to do this ... |
I will test some things later this day. |
@sergey-tihon Do we still need the We could also have implemented both, the |
The best way to test this is to implement tests for each operator. 😅
... from |
Yes, at least your new
Yes, awesome idea ;)
Inside each test fixture? can you show sample? |
We only need this when we have the special types.
I will start a marathon shortly to implement this. But first let us merge this PR. ;)
When it's needed then the user can add it like here: I adjusted the doc to that effect: |
Every operator in For single tests the user can add I see the effort that is too high to the test all operators. We have no chance to take the work from the user. We could try to resolve this with nunit/nunit (or is dotnet/fsharp the right way?) to have a effortless integration. I could remove |
@sergey-tihon or I implement a special operator that handles the That could look like: (Sorry, for the mass of comments and mentions.) |
I've removed setup methods from our tests, because I do not understand why we need them together with init.fs Why do we need |
Yes, I see. |
As mentioned here: #166 (comment)