Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Possible issue with F#
gregm
#1 Posted : Saturday, July 12, 2014 9:34:06 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/3/2014(UTC)
Posts: 10
Location: United States of America

Thanks: 3 times
Was thanked: 2 time(s) in 2 post(s)
I'm very new to F# and I'm doing a like project to try and learn some more. I thought it would be cool to use testing as part of it, to see how that works. I'm running into an issue where an item from the SUT is null, when it shouldn't be.

I've already asked the question on StackOverflow, so I'll reference there: http://stackoverflow.com/q/24710683/99559.

Is there any information on the correct way to setup tests for F# projects using NCrunch? Suggested testing frameworks? And why is this issue happening?
Remco
#2 Posted : Sunday, July 13, 2014 12:00:39 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for posting.

I'm not aware of anything in NCrunch that would specifically cause this problem. It's possible that NCrunch is surfacing the issue indirectly, or that you've discovered something unusual between the multiple toolsets in use here (NCrunch/MSBuild/FSharp/NUnit).

I think it may be worth trying to place your NCrunch in compatibility mode to see if this makes any difference.

Do you experience this problem when attempting to run your tests directly using NUnit? (i.e. the NUnit GUI or console runner). Note that TestDriven.NET isn't always the same as these.

If you can submit a buildable/runnable code sample that I can play with, I should be able to help find the problem very quickly. You can submit code via the contact form.


Thanks!

Remco
gregm
#3 Posted : Sunday, July 13, 2014 12:37:15 AM(UTC)
Rank: Member

Groups: Registered
Joined: 4/3/2014(UTC)
Posts: 10
Location: United States of America

Thanks: 3 times
Was thanked: 2 time(s) in 2 post(s)
Thanks for answering so quickly Remco!

I submitted a zipped solution to the contact form. It should be pretty self explanatory.

Please note that based on the StackOverflow responses, I did try to run the code in FSI and I got the same results there...which leads me to think it might not be NCrunch specific. It is more likely a PEBKEC. =:-o

I appreciate you taking a look!

Greg
Remco
#4 Posted : Sunday, July 13, 2014 6:11:33 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks for the sample solution.

Running this test produces the exact same results between NCrunch and vanilla NUnit, so I'm afraid there's nothing I can do to help here. It will be interesting to see the response to your stackoverflow question.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download