ParallelLimiter on base class #820
-
I'm considering migrating our XUnit tests to TUnit. Many of our tests are integration tests and require some setup at the beginning to work. So not to repeat the code for each integration test class, we have a base class that does all the setup and teardown and actual test classes inherit from it. Also as they are integration tests, we cannot really run a ton of them at the same time so I applied ParallelLimiter attribute on the base class. However when on the base class it is ignore, it only works if I put it on each test class that derive from the base class. Other attributes like Before works from the base class but not the ParallelLimiter. Is it by design? Is there a good reason or is it a bug? Code example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It should apply to subclasses too so an oversight on my part I think. I'll take a look! |
Beta Was this translation helpful? Give feedback.
@fvaillancourt Does this work for you on the latest version now?