-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Split simple partial test classes #18896
Conversation
|
test/EFCore.Cosmos.FunctionalTests/Query/NorthwindMiscCosmosTest.cs
Outdated
Show resolved
Hide resolved
test/EFCore.Specification.Tests/Query/KeylessEntitiesTestBase.cs
Outdated
Show resolved
Hide resolved
using Xunit; | ||
|
||
#pragma warning disable RCS1202 // Avoid NullReferenceException. | ||
|
||
// ReSharper disable InconsistentNaming | ||
namespace Microsoft.EntityFrameworkCore.Query | ||
{ | ||
public abstract partial class SimpleQueryTestBase<TFixture> | ||
public abstract class NorthwindAggregateOperatorsQueryTestBase<TFixture> : QueryTestBase<TFixture> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are they prefixed with Northwind? Usually the test classes are named after the feature they are testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding Query in the name is also redundant in most cases
In reply to: 346674959 [](ancestors = 346674959)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GearsOfWarQueryTestbase 🗡 We need to determine a consistent convention to name test classes.
This splits all our "simple" tests, which are currently in a single class (split across files via partial), into separate classes.
Still TODO: set up the Northwind database exactly once for all suites. xunit supports "shared context" via the concept of test collections, but this also has an impact on parallelism. I've posted a question on stackoverflow, @AndriySvyryd @maumar any ideas on this?