Skip to content

Knowing which tests will run in AssemblyInitialize #7311

@nohwnd

Description

@nohwnd

Summary

I am doing setup that is expensive and some parts are necessary only for some of the tests in the assembly. In my case some I am building a solution that holds all compatibility projects for vstest, and would like to build them only when any "compatibility" tests is running.

Is there a way to know in assembly initialize which tests will run (even roughly - if they passed filtering is good enough, they can end up being skipped)?

This would be especially useful when running single test in VS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FixturesArea: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)Needs: DesignNeeds research and proposal for how the feature will be implemented.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions