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

Test stabilization: set modelinfo provider in assembly fixture #481

Conversation

johnstairs
Copy link
Member

@johnstairs johnstairs commented May 21, 2019

Description

This is a temporary workaround to stabilize unit tests after the STU3 refactoring. Extends our xUnit extension to include a TestFixtureAttribute, which allows a type to be created before any test executes (and disposed at the end). There is a sample for how to create such an extension in the xUnit repo.

We then use this attribute to define a assembly fixture that sets the model info provider.
This should become unnecessary as the STU3/R4 work advances.

Related issues

Addresses #480

@johnstairs johnstairs requested a review from brendankowitz May 21, 2019 05:18
@johnstairs johnstairs merged commit 2a78167 into master May 21, 2019
@johnstairs johnstairs deleted the personal/johnstairs/set-modelinfoprovider-in-assembly-fixture branch May 21, 2019 17:34
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

Successfully merging this pull request may close these issues.

3 participants