NCrunch Forum
»
General Support
»
Build/Test Issues
»
Issue with NUnit SetUpFixtureAttribute
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
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,161
Thanks: 964 times Was thanked: 1296 time(s) in 1202 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.
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,161
Thanks: 964 times Was thanked: 1296 time(s) in 1202 post(s)
|
Actually don't worry about the bug report - this was pretty easy to reproduce. Fix will be in 1.35b.
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,161
Thanks: 964 times Was thanked: 1296 time(s) in 1202 post(s)
|
This issue should be fixed in the 1.35b build that was released this morning.
|
|
|
|
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.
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,161
Thanks: 964 times Was thanked: 1296 time(s) in 1202 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
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,161
Thanks: 964 times Was thanked: 1296 time(s) in 1202 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.
|
|
|
|
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.
|
|
|
|
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?
|
|
|
|
Rank: NCrunch Developer
Groups: Administrators
Joined: 4/16/2011(UTC) Posts: 7,161
Thanks: 964 times Was thanked: 1296 time(s) in 1202 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.
|
|
|
|
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.
|
|
|
NCrunch Forum
»
General Support
»
Build/Test Issues
»
Issue with NUnit SetUpFixtureAttribute
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.NETThis page was generated in 0.068 seconds.