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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Elastic.XunitV3.Elasticsearch.Core" Version="0.13.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Elastic.XunitV3.Elasticsearch.Core" Version="0.13.0" />
                    
Directory.Packages.props
<PackageReference Include="Elastic.XunitV3.Elasticsearch.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Elastic.XunitV3.Elasticsearch.Core --version 0.13.0
                    
#r "nuget: Elastic.XunitV3.Elasticsearch.Core, 0.13.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Elastic.XunitV3.Elasticsearch.Core@0.13.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Elastic.XunitV3.Elasticsearch.Core&version=0.13.0
                    
Install as a Cake Addin
#tool nuget:?package=Elastic.XunitV3.Elasticsearch.Core&version=0.13.0
                    
Install as a Cake Tool

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.Transport client, or a raw HttpClient)
  • Avoid pulling in the Elastic.Clients.Elasticsearch dependency
  • 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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