-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tests are run twice. #60
Labels
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification.
Comments
Xiaoy312
added
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification.
labels
Nov 24, 2022
var testAssemblies = AppDomain.CurrentDomain.GetAssemblies()
.Where(x => x.GetName()?.Name?.EndsWith("Tests", StringComparison.OrdinalIgnoreCase) ?? false)
.Concat(new[] { GetType().GetTypeInfo().Assembly })
.Distinct();
var types = testAssemblies.SelectMany(x => x.GetTypes()); |
Interesting, this would mean we have a similar issue inside of Uno.UI. (unless there's a distinct somewhere after as well) |
In uno.ui, this is avoided because the UnitTestsControl is in the SampleApps, so the |
Makes sense! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification.
when using a separate assembly for tests and said assembly name ends with "tests",
the tests are run twice.
^
AppDomain.CurrentDomain.GetAssemblies()
definitely containsGetType().GetTypeInfo().Assembly.GetTypes()
The text was updated successfully, but these errors were encountered: