[NotInParallel] order at both class and test levels #4566
Answered
by
traiannemes
traiannemes
asked this question in
Q&A
-
|
My goal is to run in sequential mode tests at the class level then inside the class at the test level |
Beta Was this translation helpful? Give feedback.
Answered by
traiannemes
Jan 26, 2026
Replies: 1 comment 1 reply
-
|
I would recommend using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have hundreds of tests that share the same TestContainer since those are resource intensive. So we needed order between most of them, at least within class level. But about one week ago after a test rehaul done in parallel plus upgrading to latest version of TUnit when running all tests (aka literally all) I saw that in one class the DependOn execution was not honored. So I transition to [NotInParallel] approach. But then when running all tests again another class with the same problem. Fixed it, too then ran again then another class, though in previous runs those classes were fine, reporting ok for tests. Maybe you get the idea, fixing one then another one pops for the same problem. S…