microsoft / testfx

MSTest framework and adapter
MIT License
749 stars 255 forks source link

Add `VSTestBridge` msbuild capability for VS and runsetting handling #3600

Open MarcoRossignoli opened 2 months ago

MarcoRossignoli commented 2 months ago

We should announce to VS if pass or not the runsetting. If adapter is using the VSTestBridge it's handled automatically, otherwise is ignored. This means rename also the --settings to something mode specific --runsettings or at least have it fixed and hidden to let VS to correctly compose.

Evangelink commented 2 months ago

Could you give a little more details of what would need to be done? Create a capability? Transfer it in server mode? ...

Could we reuse https://github.com/microsoft/testfx/blob/main/src/Platform/Microsoft.Testing.Extensions.VSTestBridge/Capabilities/IVSTestFlattenedTestNodesReportCapability.cs?

MarcoRossignoli commented 2 months ago

Could you give a little more details of what would need to be done? Create a capability? Transfer it in server mode? ...

We need to set a capability in MSBuild props for that extension so VS can take it and decide if pass or not the runsettings.