Skip to content

Full Microsoft.Testing.Platform support... Eventually #275

Description

@farlee2121

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions