Skip to content

Commit

Permalink
Move to Nullean.Xunit.Partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Feb 9, 2024
1 parent 1dbf386 commit 0c5661f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net462</TargetFrameworks>
<IsPackable>True</IsPackable>
<IsTestProject>False</IsTestProject>
<Description>Provides an Xunit test framework allowing you to run integration tests against local ephemeral Elasticsearch clusters</Description>
<PackageTags>elastic,elasticsearch,xunit,cluster,integration,test,ephemeral</PackageTags>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Nullean.Xunit.Partitions" Version="0.4.1" />
<PackageReference Include="Nullean.Xunit.Partitions" Version="0.4.2" />
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/Elastic.Elasticsearch.Xunit/ElasticXunitRunOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Linq;
using System.Runtime.Serialization;
using Elastic.Elasticsearch.Xunit.XunitPlumbing;
using Elastic.Stack.ArtifactsApi;
using Nullean.Xunit.Partitions;
Expand Down Expand Up @@ -40,6 +41,7 @@ public class ElasticXunitRunOptions : PartitionOptions
/// Accepts a comma separated list of filters
/// </summary>
[Obsolete("Use PartitionFilterRegex instead", false)]
[IgnoreDataMember]
public string ClusterFilter
{
get => PartitionFilterRegex;
Expand All @@ -60,6 +62,7 @@ public string ClusterFilter
/// Accepts a comma separated list of filters
/// </summary>
[Obsolete("Use ParitionFilterRegex instead", false)]
[IgnoreDataMember]
public string TestFilter
{
get => TestFilterRegex;
Expand Down
4 changes: 2 additions & 2 deletions src/Elastic.Elasticsearch.Xunit/Sdk/ElasticTestFramework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
namespace Elastic.Elasticsearch.Xunit.Sdk;

// ReSharper disable once UnusedType.Global
public class ElasticTestFramework : PartitionTestFramework<ElasticXunitRunOptions, TestAssemblyRunnerFactory, TestFrameworkDiscovererFactory>
public class ElasticTestFramework : PartitionTestFramework<ElasticXunitRunOptions, TestAssemblyRunnerFactory, ElasticTestFrameworkDiscovererFactory>
{
public ElasticTestFramework(IMessageSink messageSink) : base(messageSink) { }
}

public class TestFrameworkDiscovererFactory : ITestFrameworkDiscovererFactory
public class ElasticTestFrameworkDiscovererFactory : ITestFrameworkDiscovererFactory
{
public XunitTestFrameworkDiscoverer Create<TOptions>(
IAssemblyInfo assemblyInfo, ISourceInformationProvider sourceProvider, IMessageSink diagnosticMessageSink
Expand Down

0 comments on commit 0c5661f

Please sign in to comment.