-
Notifications
You must be signed in to change notification settings - Fork 799
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
Respect user configuration for PreEnumerateTheories in xunit.console runner #1746
Comments
I need more information. What's the expected behavior? What's the actual behavior? What is a repro project that illustrates it? |
Sorry, maybe this is specific to an implementation so I've created an example Expected behavior: like "dotnet test" from the project folder, or from VS's Test Explorer, test cases are run properly
Actual behavior: no test cases are run
|
I'm looking at your code, but let me answer the initial inquiry with two pieces of information:
Given the combination of these two facts, my suggestion is that you stop using the unsupported runner and instead rely on VSTest, as this is the only supported way to run .NET Core tests. |
"Any test case orderer that depends on being able to get individual theory test cases is unfortunately going to be broken in this scenario." Yeah, that's exactly my use case. I'll be switching to VSTest, though it does not provide xml output files without https://www.nuget.org/packages/XunitXml.TestLogger Hopefully it stays compatible! |
… iOS/Android It's already disabled for Browser and according to xunit/xunit#1746 (comment) the theory pre-enumeration only makes sense for UI scenarios like VS test explorer, which doesn't apply for xharness.
… iOS/Android (#676) It's already disabled for Browser and according to xunit/xunit#1746 (comment) the theory pre-enumeration only makes sense for UI scenarios like VS test explorer, which doesn't apply for xharness.
Users may plug into ITestCaseOrderer OrderTestCases functionality as a requirement to running their tests. If PreEnumerateTheories is false during xunit.console execution, this functionality will not run in the same way.
The text was updated successfully, but these errors were encountered: