Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3950930
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:40:11+00:00 2026-05-20T01:40:11+00:00

I am having an interesting situation. In my test assembly, I have folders having

  • 0

I am having an interesting situation. In my test assembly, I have folders having specific test classes, i.e., TestFixture’s. Consider, for e.g., the following hierarchy in VS:

Sol
  TestProject
    TestFolder1
      TestClass1
      TestClass2
    TestFolder2
      TestClass3

Now, when I run the following at command line:

nunit-console.exe /run:Sol.TestProject.TestFolder1.TestClass2 TestProject.dll

Things are running fine and all the tests are passing. But, if I run as below:

nunit-console.exe /run:Sol.TestProject.TestFolder1 TestProject.dll

In this case, some of the tests in TestClass2 are failing.

I have tried dumping the state of some of the relevant objects involved in the test, and the state seemed fine at the beginning of the test code in both cases. Also, TestClass1/2/3 do not have a superclass doing something – so that is ruled out as well. Any ideas what else can be happening here?

I am using VS2010/.NET4.0 (4.0.30319.1)/nUnit 2.5.9.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:40:11+00:00Added an answer on May 20, 2026 at 1:40 am

    Finally figured this out. I was using a singleton class for storing certain options. Looks like the singleton class instance is retained between runs of different TestFixtures (i.e., test classes), when they are run together, e.g., for a folder or for a project. I did not dump the state of this object initially, because I thought that the singleton class will be having new instance for each of the TestFixtures. Interesting finding, hope this helps someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have an interesting problem I am having issues with the jquery .load()
PHP mySQL Hi, i am having an interesting problem. I have a form in
I have this interesting situation. I have a bunch of structs that hold a
I'm having an interesting issue with gcc 4.5.2. The following code #include<thread> #include<iostream> using
I am having an interesting bug in MSIE8, only. I have also tested this
Good day, I am having an interesting problem that I cannot understand. I have
I have an interesting situation on my hands. For a few years now we've
I've got a rather interesting situation. I have a SQLite database full of addresses
We have been having an interesting issue with the Eclipse update when some of
I have a somewhat interesting problem I am having a hard time figuring out.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.