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

Make default TestAgency URI unique per run (v2) #947

Merged
merged 5 commits into from May 16, 2021

Conversation

ChrisMaddock
Copy link
Member

@ChrisMaddock ChrisMaddock commented May 9, 2021

Replacement for #931. Fixes #764

This change allows an engine to be created within a running NUnit Test, on .NET FX. Unfortunately I had to cut my losses on supporting the same in .NET Core after several hours of reflection woes - have broken that out into #946.

This is a useful feature for acceptance style testing of runners - we have various examples in our own console tests where we've had to interact with non-public engine classes to test, which we ideally want not to be necessary.

The first commit adds a failing test, which is fixed in the second commit. The third commit removes a couple of workarounds we've previously built in to get around this problem.

@ChrisMaddock ChrisMaddock added this to the 3.13 milestone May 9, 2021
@ChrisMaddock ChrisMaddock self-assigned this May 9, 2021
Copy link
Contributor

@CharliePoole CharliePoole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat and simple!

@ChrisMaddock
Copy link
Member Author

Thanks Charlie! I've resolved conflicts and set this to auto-merge when CI passes.

@ChrisMaddock ChrisMaddock merged commit 7ea323e into master May 16, 2021
@CharliePoole CharliePoole deleted the unique-agency-uri branch November 4, 2021 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Found two different objects associated with the same URI, /xxxxx/TestAgency
2 participants