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

Notification

Icon
Error

NCrunch not respecting binding redirect
AlexFoxGill
#1 Posted : Monday, June 2, 2014 1:08:22 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/2/2014(UTC)
Posts: 2
Location: United Kingdom

Thanks: 1 times
I am using xUnit with the AutoFixture extension, plus a NuGet package of my own that has a dependency on AutoFixture.

My custom package has a dependency on a previous version of AutoFixture, so I use a binding redirect in the app.config to rectify this. The project builds with no errors, and ReSharper can run the tests just fine. However, it seems that NCrunch can't run the project, as I get this error:

Quote:
This test was not executed during a planned execution run. Ensure your test project is stable and does not contain issues in initialisation/teardown fixtures.


This is reproducible in a new project:

1. Search for the xUnit AutoFixture NuGet package and install it, which will install AutoFixture and xUnit
2. Set up a simple test e.g.
Code:
    public class Class1
    {
        [Fact]
        public void Pass()
        {
            Assert.True(true);
        }
    }

3. Observe that the test passes in NCrunch
4. Search for the AutoFixture Entity Framework extension authored by myself, and install it
5. Observe that the test suite now fails with the quoted message



I am not sure where to go from here in terms of debugging the issue, any help would be greatly appreciated!

Edit:

I forgot to mention that I am using NCrunch version 1.46.0.20
Remco
#2 Posted : Monday, June 2, 2014 10:04:27 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting!

The version of NCrunch that you're running is unfortunately very far out of date. Have you tried one of the later versions to see if this solves the problem for you?


Cheers,

Remco
1 user thanked Remco for this useful post.
AlexFoxGill on 6/3/2014(UTC)
AlexFoxGill
#3 Posted : Tuesday, June 3, 2014 8:33:50 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/2/2014(UTC)
Posts: 2
Location: United Kingdom

Thanks: 1 times
Thanks, I hadn't realised I was so far behind! Updating to the latest version worked :) Fantastic tool by the way, makes unit testing a joy
Remco
#4 Posted : Tuesday, June 3, 2014 8:36:27 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Great to hear! I'm glad you're enjoying the product :)

There's been LOTS of improvements since the old build you were running. I recommend checking up on the blog and the release notes on the download page to see what you've been missing.
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.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download