Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a test helper library #182

Open
sharwell opened this issue Oct 1, 2020 · 0 comments
Open

Consider adding a test helper library #182

sharwell opened this issue Oct 1, 2020 · 0 comments

Comments

@sharwell
Copy link
Member

sharwell commented Oct 1, 2020

vs-mef works well for testing applications, but it can be difficult to create and manage IExportProviderFactory instances that provide ideal behavior for testing. dotnet/roslyn has been iterating on this concept, and currently uses the following two types as the core of the testing functionality:

  • TestComposition: Assists in caching IExportProviderFactory instances for equivalent compositions
  • ExportProviderCache: Ensures that only one ExportProvider is created in the context of a given test
  • UseExportProviderAttribute: Ensures that an ExportProvider created by one test is not reused outside the context of that test

It may be worth building a library with tools to assist other application developers write tests with one or more of these concepts.

AArnott pushed a commit to AArnott/vs-mef that referenced this issue Dec 1, 2022
Bumps [Microsoft.CodeCoverage](https://github.com/microsoft/vstest) from 17.5.0-preview-20221109-01 to 17.5.0-preview-20221201-01.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/commits)

---
updated-dependencies:
- dependency-name: Microsoft.CodeCoverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant