Skip to content

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.


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
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.

3 participants