Elastic.XunitV3.Elasticsearch.Core
0.13.0
Prefix Reserved
dotnet add package Elastic.XunitV3.Elasticsearch.Core --version 0.13.0
NuGet\Install-Package Elastic.XunitV3.Elasticsearch.Core -Version 0.13.0
<PackageReference Include="Elastic.XunitV3.Elasticsearch.Core" Version="0.13.0" />
<PackageVersion Include="Elastic.XunitV3.Elasticsearch.Core" Version="0.13.0" />
<PackageReference Include="Elastic.XunitV3.Elasticsearch.Core" />
paket add Elastic.XunitV3.Elasticsearch.Core --version 0.13.0
#r "nuget: Elastic.XunitV3.Elasticsearch.Core, 0.13.0"
#:package Elastic.XunitV3.Elasticsearch.Core@0.13.0
#addin nuget:?package=Elastic.XunitV3.Elasticsearch.Core&version=0.13.0
#tool nuget:?package=Elastic.XunitV3.Elasticsearch.Core&version=0.13.0
Elastic.XunitV3.Elasticsearch.Core
Core xUnit V3 integration for running tests against ephemeral Elasticsearch clusters, built on
Nullean.Xunit.Partitions.V3 for cluster lifecycle management.
Most users should depend on Elastic.XunitV3.Elasticsearch instead,
which adds a pre-configured ElasticsearchClient with debug diagnostics routed to test output.
This package is for users who want to:
- Use a different Elasticsearch client (e.g. the low-level
Elastic.Transportclient, or a rawHttpClient) - Avoid pulling in the
Elastic.Clients.Elasticsearchdependency - Build their own higher-level integration on top of the cluster primitives
What's included
| Type | Purpose |
|---|---|
ElasticsearchCluster<TConfiguration> |
Base cluster class implementing IPartitionLifetime — handles startup, teardown, external cluster support |
ElasticsearchConfiguration |
Cluster configuration (version, timeouts, concurrency, diagnostics) |
IClusterFixture<T> |
Marker interface for test classes — inherits IPartitionFixture<T> for partition grouping |
ElasticTestFramework |
Test framework registration — [assembly: TestFramework(typeof(ElasticTestFramework))] |
ElasticXunitRunOptions |
Partition/test filtering options |
SkipVersionAttribute |
Skip tests by Elasticsearch version range |
SkipTestAttribute |
Abstract base for custom skip conditions |
ExternalClusterConfiguration |
Connect to an existing cluster instead of starting an ephemeral one |
ElasticsearchClusterExtensions |
GetOrAddClient helpers with per-test output routing |
Usage
using Elastic.XunitV3.Elasticsearch.Core;
using Xunit;
[assembly: TestFramework(typeof(ElasticTestFramework))]
public class MyCluster : ElasticsearchCluster<ElasticsearchConfiguration>
{
public MyCluster() : base(new ElasticsearchConfiguration("latest-9")) { }
}
public class MyTests(MyCluster cluster) : IClusterFixture<MyCluster>
{
[Fact]
public void ClusterIsRunning()
{
Assert.NotEmpty(cluster.NodesUris());
}
}
See the Elastic.XunitV3.Elasticsearch README
for full documentation on configuration, external clusters, version skipping, and filtering.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Elastic.Elasticsearch.Ephemeral (>= 0.13.0)
- Nullean.Xunit.Partitions.v3 (>= 0.12.0)
- xunit.v3.assert (>= 3.2.2)
-
net8.0
- Elastic.Elasticsearch.Ephemeral (>= 0.13.0)
- Nullean.Xunit.Partitions.v3 (>= 0.12.0)
- xunit.v3.assert (>= 3.2.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Elastic.XunitV3.Elasticsearch.Core:
| Package | Downloads |
|---|---|
|
Elastic.XunitV3.Elasticsearch
xUnit v3 integration for Elasticsearch — ephemeral clusters with a pre-configured ElasticsearchClient. This is the recommended package for most users. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.13.0 | 108 | 2/22/2026 |