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

Notification

Icon
Error

Issue with NUnit SetUpFixtureAttribute
mono68
#1 Posted : Friday, September 30, 2011 3:02:11 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/30/2011(UTC)
Posts: 1
Location: Hamburg

Hi.

NCrunch is great but as soon as I implement a class decorated with the SetUpFixtureAttribute including a method decorated with the SetUpAttribute all markers everywhere go black even though NCrunch Processing Queue and NCrunch Tests still execute the tests with "Passed".

Code:

    [SetUpFixture]
    public class GlobalFixture
    {
        [SetUp]
        public void GlobalSetUp()
        {
            //Whatever code
        }         
    }


Bye
Andreas
Remco
#2 Posted : Friday, September 30, 2011 4:17:35 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Ok - that's bad!

Can you submit a bug report after this has happened to you? I'd like to take a look at the log file.
Remco
#4 Posted : Friday, September 30, 2011 5:50:47 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Actually don't worry about the bug report - this was pretty easy to reproduce. Fix will be in 1.35b.
Remco
#5 Posted : Tuesday, October 18, 2011 6:29:29 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
This issue should be fixed in the 1.35b build that was released this morning.
MikeWard
#6 Posted : Wednesday, October 19, 2011 2:23:59 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
I'm running 1.35.0.16b (downloaded this morning) and I'm still seeing this issue.
Remco
#7 Posted : Wednesday, October 19, 2011 2:33:45 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Mike,

Thanks for posting. Would you be able to submit a bug report using the NCrunch menu? I'm curious about why this issue still exists for you.


Thanks!

Remco
Remco
#8 Posted : Thursday, October 20, 2011 6:29:20 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks for sending through the bug report. I'm curious - do the tests work correctly if you turn off the SetupFixture? I'm actually quite amazed that NCrunch is getting as far as trying to run your tests, as right now Silverlight isn't on the list of platforms supported by NCrunch.
MikeWard
#9 Posted : Thursday, October 20, 2011 12:14:41 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
SetupFixture is required. We setup some Mocks that are used in many of the tests. Bummer about not supporting Silverlight.
baens
#10 Posted : Monday, July 2, 2012 3:02:28 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/2/2012(UTC)
Posts: 2

Was thanked: 1 time(s) in 1 post(s)
I am having the same issue. I have a SetupFixture which has to setup certain things for integration tests to work, but NCrunch doesn't appear to be running the setup (ReSharper, TestRunner.NET and NUnit GUI / Console do). I am running the latest release (1.40). Any ideas what could still be wrong?
Remco
#11 Posted : Tuesday, July 3, 2012 9:00:13 AM(UTC)
Rank: NCrunch Developer

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

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

Up until now, I haven't heard reports of this problem resurfacing. Can you provide any details of how you are using SetupFixture? Note that NCrunch will never show code coverage inside the SetupFixture code as it has no active test to associate them with.
baens
#12 Posted : Tuesday, July 3, 2012 12:57:31 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/2/2012(UTC)
Posts: 2

Was thanked: 1 time(s) in 1 post(s)
Oops your right, NCrunch wasn't wrong. I had test data in the project, but didn't include it in the visual studio project so it wasn't making it to the NCrunch output directory. So just a mistake on myside. Thanks for a great product!
1 user thanked baens for this useful post.
Remco on 7/3/2012(UTC)
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.070 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download