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

  • Home
  • SEARCH
  • 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 6000345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:40:47+00:00 2026-05-23T00:40:47+00:00

More than once the question has been asked on SO. But the only answers

  • 0

More than once the question has been asked on SO. But the only answers that are given read “you should not need to order your unit tests, it is bad because” or “you can avoid that if…”

I already know it is bad, why it is bad, and techniques to avoid it. But that is not what I want to know. I’d like to know if it is possible to order the execution of NUnit tests, other than an alphabetical order. To be blunt: I actually want state to propogate from one test to the next. Trust me that I have a clever reason for this, that defies the usual philosophy.

MSTest has the “ordered test” capability, which is very useful in certain cases. I’d like to have that ability in NUnit. Can it be done?

  • 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-23T00:40:48+00:00Added an answer on May 23, 2026 at 12:40 am

    The work-around (hack) is to alphabetize your test case names. See this thread:

    https://bugs.launchpad.net/nunit-3.0/+bug/740539

    Relying on alphabetical order is a workaround that you can use but it is not documented and supported beyond the visual order of the display. In theory it could change at any time. In practice it won’t change until NUnit 3.0, so you’re pretty safe using it as a workaround

    This quote is from Charlie Poole, the main dev on NUnit.

    It also seems they have a scheme cooking to support ordered tests in NUnit 3, though how they will do so is still under discussion.

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

Sidebar

Related Questions

This question has been asked more than once before, but I have not found
Hey guys, I don't know if this question has been asked yet but imagine
Folks, I know this question has been asked before here, though indirectly . But
The question where exception logs should go has been discussed here once or twice
Page_Load Calls more than once (4 times in my case) in FireFox but in
I was told more than once that Delphi handles dynamic classes better than static.Thereby
I thought that calling BeginInvoke more than once on the same delegate instance would
I succesfully used a validator more than once,but after some programming my validators are
If some nong has accidentally entered the same attribute more than once in the
How can I see all the records that appear more than once per day?

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.