We are trying to migrate from MSTestV1 to MSTestV2. While doing so we noticed the behavior change documented in DeltaWithMSTestV1 - Behavior change 12 which leads to some trouble.
Unfortunately, we did not find any way to limit the execution time of the ClassInitialize and AssemblyInitialize methods.
In a comment in issue #496 there was a talk about a timeout attribute on these methods. Is there such a feature available or is there another way to set the timeouts for these methods?
As far as we've seen in the code, there is no way to limit the execution time of these methods. Because this is a feature we need (and we consider it as essential) we would be willing to go ahead and implement it by ourselves.
To avoid doing work that will have no chance to get merged into MSTestV2, we would like to know if such a feature would fit into your concept/vision for MSTestV2.
We imagine providing the following additional settings in .runsettings files:
<RunSettings>
<MSTest>
<AssemblyInitializeTimeout>5000</AssemblyInitializeTimeout>
<ClassInitializeTimeout>5000</ClassInitializeTimeout>
</MSTest>
</RunSettings>
AB#1934903
We are trying to migrate from MSTestV1 to MSTestV2. While doing so we noticed the behavior change documented in DeltaWithMSTestV1 - Behavior change 12 which leads to some trouble.
Unfortunately, we did not find any way to limit the execution time of the
ClassInitializeandAssemblyInitializemethods.In a comment in issue #496 there was a talk about a timeout attribute on these methods. Is there such a feature available or is there another way to set the timeouts for these methods?
As far as we've seen in the code, there is no way to limit the execution time of these methods. Because this is a feature we need (and we consider it as essential) we would be willing to go ahead and implement it by ourselves.
To avoid doing work that will have no chance to get merged into MSTestV2, we would like to know if such a feature would fit into your concept/vision for MSTestV2.
We imagine providing the following additional settings in
.runsettingsfiles:AB#1934903