VSTestBridge: Don't add TRX properties when TRX not enabled#6872
VSTestBridge: Don't add TRX properties when TRX not enabled#6872Evangelink merged 1 commit intomainfrom
Conversation
src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestApplicationBuilderExtensions.cs
Show resolved
Hide resolved
|
One more comment here ^^^ even though it is already merged. It also seems to compose a bit weirdly. Will we be able to remove that interface in the future (e.g. with removal of vstest bridge)? "isEnabled" seems like quite generic thing that we might want to check on more capabilities. |
|
If we removed the bridge, I think we will be able to clean that up a lot. The main issue here is that the VSTestBridge that implements lots of functionality doesn't know about the individual test frameworks. The interface design of ITrxReportCapability makes it worse. You need to concrete implementation to understand whether or not it's enabled. What I did here is introducing an extra internal interface that provides the additional information that the concrete implementations know of. Ideally, we would just fix ITrxReportCapability. But it's a breaking change and it was rejected for MTP v2. |
|
Okay makes sense. I thought it was something like that. I have bunch of such "tricks" in vstest, and I really don't like them. One of the classes is private so no problem there, and the other is public but tied to vstest bridge it seems. So we should not have hard time removing that interface. |
We might have an acceptable break because of IVT, if old MSTest is used but VSTestBridge is upgraded. |
Related to #3933