You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the past they were sorted alphabetically. You can experiment to see if that's still true since its really just a side effect. You have to take the full namespace into account.
@NecroFilja You could add set the Order property on an ITest by creating a attribute implementing IBeforeTest. However, the ordering is only applied within namespace. You'd need to implement a custom ITestAssemblyBuilder, however, the default implementation can't currently bey overwritten. I wrote a short piece about implementing test fixture ordering.
@jadarnel27 I have invited you to the Contributors team. Once you accept, we will be able to assign this issue to you, but feel free to start in the meantime, it is all yours 😄
Hi.
I found this issue discussion and it seems the one I need so much.
I have Telerik Testing Framework + Selenium tests in different classes. One class is one separate test. I need to be able to run my tests in a specific order.
This issue has been discussed for a long time but I couldn't find any solution to it.
Did anyone implement it already by any chance?
From the previous answers, it seems like the fix is pretty simple. Could you tell me exactly what should be changed in that line of code? I will build it for myself then.
@kotiku just to add to what Charlie said, this was introduced in version 3.8 of NUnit, so make sure you are on that version or later in order to order test fixtures (you could only order individual tests prior to 3.8).
Hi everyone. Thank you for provided information and references.
Order class attribute does what I need. I have to keep my tests under one namespace to have Order applied but can overcome this. Great job, thanks a lot!
Reacted by Josh Darnell, Xambey, Javier Azaret and Akilan
Activity
Sebazzz commentedon Mar 19, 2015
I'd vote for this. This is very useful for integration tests and actually the only reason I use MSTest for that.
NecroFilja commentedon Jul 4, 2016
Are there any workarounds?
Generally what is default sort order of testfixtures/suites and any way to inject inside of it?
CharliePoole commentedon Jul 4, 2016
In the past they were sorted alphabetically. You can experiment to see if that's still true since its really just a side effect. You have to take the full namespace into account.
CharliePoole commentedon Jul 4, 2016
If course, if you're a developer you can always volunteer to implement this, under guidance if needed.
Sebazzz commentedon Jul 4, 2016
@NecroFilja You could add set the
Orderproperty on anITestby creating a attribute implementingIBeforeTest. However, the ordering is only applied within namespace. You'd need to implement a customITestAssemblyBuilder, however, the default implementation can't currently bey overwritten. I wrote a short piece about implementing test fixture ordering.31 remaining items
rprouse commentedon Aug 7, 2017
@jadarnel27 I have invited you to the Contributors team. Once you accept, we will be able to assign this issue to you, but feel free to start in the meantime, it is all yours 😄
jadarnel27 commentedon Aug 7, 2017
Thanks, guys! Expect a pull request in the near future 😄
mikkelbu commentedon Aug 17, 2017
@jadarnel27 Thanks for the contribution 👍
jadarnel27 commentedon Aug 18, 2017
Glad I could do it! Thanks to all of you for making me feel welcome.
katyabilokur commentedon Nov 23, 2017
Hi.
I found this issue discussion and it seems the one I need so much.
I have Telerik Testing Framework + Selenium tests in different classes. One class is one separate test. I need to be able to run my tests in a specific order.
This issue has been discussed for a long time but I couldn't find any solution to it.
Did anyone implement it already by any chance?
From the previous answers, it seems like the fix is pretty simple. Could you tell me exactly what should be changed in that line of code? I will build it for myself then.
Thank you.
Sebazzz commentedon Nov 23, 2017
CharliePoole commentedon Nov 23, 2017
This issue was closed as done but it's unclear just what was done. Probably only the easy part of the solution.
Can somebody link the PR to this issue?
mikkelbu commentedon Nov 23, 2017
The PR is #2365 (it is also linked to this issue, see just below this comment #345 (comment))
And as far as I can recall it was just the implementation of the following
taken from #345 (comment).
CharliePoole commentedon Nov 23, 2017
@kotiku Looking at the PR, I'm pretty sure that this is fixed.
Note that we made this issue be about simple ordering and not more complex dependencies.
jadarnel27 commentedon Nov 23, 2017
@kotiku just to add to what Charlie said, this was introduced in version 3.8 of NUnit, so make sure you are on that version or later in order to order test fixtures (you could only order individual tests prior to 3.8).
katyabilokur commentedon Nov 27, 2017
Hi everyone. Thank you for provided information and references.
Order class attribute does what I need. I have to keep my tests under one namespace to have Order applied but can overcome this. Great job, thanks a lot!