Closed thomhurst closed 5 days ago
Looks like this addresses point 3 but what about point 2 from https://github.com/thomhurst/TUnit/commit/3286de308d91246e6d999dc016b883d213547116#commitcomment-149172613 ?
If you have two tests one with SkipAttribute
and another one manually throws a SkipTestException
then the TearDown
also isn't called because the SkipAttribute
one does not get decreased in the instance tracker.
Because
ExecuteStaticAfterHooks
is only called inExecuteTest
https://github.com/thomhurst/TUnit/blob/4fb354f2b1da47537982e6c93ce82202ade94087/TUnit.Engine/Services/SingleTestExecutor.cs#L225 Which meansTearDown
isn't called.
@campersau Hopefully all better in 0.3.20
@campersau Running only if we know the setups were run.