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

Move to Nullean.Xunit.Partitions #63

Merged
merged 5 commits into from
Apr 5, 2024

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Feb 9, 2024

We've extracted the custom test runner bits to the more generic: https://www.nuget.org/packages/Nullean.Xunit.Partitions/

This PR takes a dependency on it so that Elastic.Xunit.Elasticsearch can simplify it's src/Elastic.Elasticsearch.Xunit/Sdk/TestAssemblyRunner.cs implementation and ceremony.

Breaking changes should be limited.

@@ -8,7 +8,6 @@

namespace Elastic.Xunit.ExampleComplex
{
[IntegrationTestCluster(typeof(TestCluster))]
Copy link
Member Author

Choose a reason for hiding this comment

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

Reviewing note: this removes support for marking clusters through attributes. In the spirit of simplifying marking test classes with IClusterFixture<> is now the sole way to get clusters injected.

This was introduced in: elastic/elasticsearch-net#3424

Since this was not ported to the new tests for the new client I think its safe to remove.

@Mpdreamz
Copy link
Member Author

Mpdreamz commented Feb 9, 2024

@flobernd tagging you since pulling this in would affect you the most: https://github.com/elastic/elasticsearch-net/blob/main/tests/Tests.Core/Tests.Core.csproj#L19

Copy link
Member

@flobernd flobernd left a comment

Choose a reason for hiding this comment

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

LGTM as far as I can tell 🙂

@Mpdreamz Mpdreamz merged commit bca9cbe into master Apr 5, 2024
5 checks passed
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.

2 participants