Where to put my xUnit tests for an F# assembly?
Posted
by Benjol
on Stack Overflow
See other posts from Stack Overflow
or by Benjol
Published on 2010-03-08T07:58:34Z
Indexed on
2010/03/08
8:06 UTC
Read the original article
Hit count: 332
I'm working on my first 'real' F# assembly, and trying to do things right.
I've managed to get xUnit working too, but currently my test module is inside the same assembly. This bothers me a bit, because it means I'll be shipping an assembly where nearly half the code (and 80% of the API) is test methods.
What is the 'right' way to do this? If I put the tests in another assembly, I think that means I have to expose internals that I'd rather keep private.
I know that in C# there is a friend mechanism for tests (if that's the right terminology), is there an equivalent in F#?
Alternatively, can anyone point me to an example project where this is being done 'properly'?
© Stack Overflow or respective owner