Motivation
Right now YoloDev supports Microsoft.Testing.Platform (MTP) via Microsoft.Testing.Extensions.VSTestBridge. This allows a smooth transition.
However, this does not allow us to leverage new features in MTP, like better hierarchy support and more granular code locations.
Experiment
I threw together an experiment demonstrating direct MTP support for expecto: https://github.com/farlee2121/expecto-puremtp-experiment
This experiment does handle
- discovering tests
- running tests will all expected outcomes
It does not handle
- filtering
- runsettings
- command line arguments
- code locations
Conclusion
I suggest we not move forward with direct MTP support.
Unfortunately, Visual Studio doesn't actually respect the new hierarchy system in MTP. In fact, it's handling the hierarchy worse and flattening all tests to one level, including the groupings which are shown but never executed.
Rider, for unclear reasons, does not work with the experiment repo even with MTP support enabled. It does work with the current YoloDev MTP support, but only on windows.
I still wanted to post the experiment as a starting point for whenever MTP support is sufficiently mature to pick this up again
Motivation
Right now YoloDev supports Microsoft.Testing.Platform (MTP) via Microsoft.Testing.Extensions.VSTestBridge. This allows a smooth transition.
However, this does not allow us to leverage new features in MTP, like better hierarchy support and more granular code locations.
Experiment
I threw together an experiment demonstrating direct MTP support for expecto: https://github.com/farlee2121/expecto-puremtp-experiment
This experiment does handle
It does not handle
Conclusion
I suggest we not move forward with direct MTP support.
Unfortunately, Visual Studio doesn't actually respect the new hierarchy system in MTP. In fact, it's handling the hierarchy worse and flattening all tests to one level, including the groupings which are shown but never executed.
Rider, for unclear reasons, does not work with the experiment repo even with MTP support enabled. It does work with the current YoloDev MTP support, but only on windows.
I still wanted to post the experiment as a starting point for whenever MTP support is sufficiently mature to pick this up again