This is an automated email from the ASF dual-hosted git repository.
blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 1571a0c Moving from xunit.running.json (no longer a thing in v3) to
.runsettings
1571a0c is described below
commit 1571a0cefd2fba06553bd27ce7f7f1dc3ba16680
Author: Daniel Blankensteiner <[email protected]>
AuthorDate: Wed Feb 11 14:10:31 2026 +0100
Moving from xunit.running.json (no longer a thing in v3) to .runsettings
---
.runsettings | 7 +++++++
CHANGELOG.md | 2 +-
DotPulsar.sln | 5 +++--
README.md | 2 ++
tests/DotPulsar.Tests/DotPulsar.Tests.csproj | 6 ------
tests/DotPulsar.Tests/IntegrationFixture.cs | 19 +++++++------------
tests/DotPulsar.Tests/xunit.runner.json | 4 ----
7 files changed, 20 insertions(+), 25 deletions(-)
diff --git a/.runsettings b/.runsettings
new file mode 100644
index 0000000..45026ea
--- /dev/null
+++ b/.runsettings
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RunSettings>
+ <xUnit>
+ <DiagnosticMessages>true</DiagnosticMessages>
+ <InternalDiagnosticMessages>false</InternalDiagnosticMessages>
+ </xUnit>
+</RunSettings>
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4a44d94..b3a374d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,7 +8,7 @@ The format is based on [Keep a
Changelog](https://keepachangelog.com/en/1.1.0/)
### Added
-- System.Text.Json added as a dependency for .NET Standard 2.0 and 2.1 (for
use in the new JSON and Protobuf schema support)
+- System.Text.Json added as a dependency for .NET Standard 2.0 and 2.1 (for
use in the new JSON schema support)
- Support for JSON schema with System.Text.Json
- Support for Protobuf schema with Google.Protobuf
diff --git a/DotPulsar.sln b/DotPulsar.sln
index 0a6377b..5745645 100644
--- a/DotPulsar.sln
+++ b/DotPulsar.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.0.32112.339
+# Visual Studio Version 18
+VisualStudioVersion = 18.2.11430.68 d18.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotPulsar",
"src\DotPulsar\DotPulsar.csproj", "{8D300FC3-2E35-4D23-B0DD-FEE9E153330A}"
EndProject
@@ -20,6 +20,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items",
"Solution Items", "{D9434D2C-2855-4A61-87B5-22C9E1BE18E6}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
+ .runsettings = .runsettings
CHANGELOG.md = CHANGELOG.md
README.md = README.md
EndProjectSection
diff --git a/README.md b/README.md
index 6220227..37cf861 100644
--- a/README.md
+++ b/README.md
@@ -87,6 +87,8 @@ For a more in-depth tour of the API, please visit the
[Wiki](https://github.com/
- Float and Double
- Time (using TimeSpan)
- Timestamp and Date (using DateTime)
+ - JSON
+ - Protobuf
For a horizontal comparison with more language-specific clients, see [Client
Feature Matrix](https://pulsar.apache.org/client-feature-matrix/).
diff --git a/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
b/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
index 98e6941..d1a89f6 100644
--- a/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
+++ b/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
@@ -43,10 +43,4 @@
<ProjectReference Include="..\..\src\DotPulsar\DotPulsar.csproj" />
</ItemGroup>
- <ItemGroup>
- <None Update="xunit.runner.json">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
- </ItemGroup>
-
</Project>
diff --git a/tests/DotPulsar.Tests/IntegrationFixture.cs
b/tests/DotPulsar.Tests/IntegrationFixture.cs
index 5dba9aa..385fe24 100644
--- a/tests/DotPulsar.Tests/IntegrationFixture.cs
+++ b/tests/DotPulsar.Tests/IntegrationFixture.cs
@@ -23,8 +23,6 @@ using System.Text;
using System.Text.Json;
using Testcontainers.Pulsar;
using Toxiproxy.Net;
-using Xunit.Sdk;
-using Xunit.v3;
public class IntegrationFixture : IAsyncLifetime
{
@@ -32,7 +30,6 @@ public class IntegrationFixture : IAsyncLifetime
private const int ToxiProxyControlPort = 8474;
private const int ToxiProxyPort = 15124;
private readonly CancellationTokenSource _cts;
- private readonly IMessageSink _messageSink;
private readonly INetwork _network;
private readonly PulsarContainer _pulsarCluster;
private readonly IContainer _toxiProxy;
@@ -41,9 +38,8 @@ public class IntegrationFixture : IAsyncLifetime
private Proxy _toxiProxyPulsarProxy;
private string? _token;
- public IntegrationFixture(IMessageSink messageSink)
+ public IntegrationFixture()
{
- _messageSink = messageSink;
_cts = new CancellationTokenSource(TimeSpan.FromMinutes(10));
_network = new NetworkBuilder()
@@ -91,11 +87,11 @@ public class IntegrationFixture : IAsyncLifetime
SubscribeToContainerEvents(_toxiProxy, "Toxiproxy");
SubscribeToContainerEvents(_pulsarCluster, "Pulsar cluster");
await _network.CreateAsync(_cts.Token);
- _messageSink.OnMessage(new DiagnosticMessage("Starting Toxiproxy"));
+ Current.SendDiagnosticMessage("Starting Toxiproxy");
await _toxiProxy.StartAsync(_cts.Token);
- _messageSink.OnMessage(new DiagnosticMessage("Starting Pulsar
Cluster"));
+ Current.SendDiagnosticMessage("Starting Pulsar Cluster");
await _pulsarCluster.StartAsync(_cts.Token);
- _messageSink.OnMessage(new DiagnosticMessage("The containers has
initiated. Next, we'll configure Toxiproxy mappings."));
+ Current.SendDiagnosticMessage("The containers has initiated. Next,
we'll configure Toxiproxy mappings.");
ServiceUrl = new Uri(_pulsarCluster.GetBrokerAddress());
AdminUrl = new Uri(_pulsarCluster.GetServiceAddress());
@@ -111,15 +107,14 @@ public class IntegrationFixture : IAsyncLifetime
};
await _toxiProxyClient.AddAsync(_toxiProxyPulsarProxy);
- _messageSink.OnMessage(new DiagnosticMessage("Toxiproxy successfully
mapped connections between host and the Pulsar Cluster."));
+ Current.SendDiagnosticMessage("Toxiproxy successfully mapped
connections between host and the Pulsar Cluster.");
ServiceUrl = new
Uri($"pulsar://{_toxiProxy.Hostname}:{_toxiProxy.GetMappedPublicPort(ToxiProxyPort)}");
- _messageSink.OnMessage(new DiagnosticMessage("You can connect with: "
+ ServiceUrl));
+ Current.SendDiagnosticMessage("You can connect with: " + ServiceUrl);
_token = await CreateToken(Timeout.InfiniteTimeSpan, _cts.Token);
}
- private void HandleClusterStateChange(string containerName, string state)
=>
- _messageSink.OnMessage(new DiagnosticMessage($"The {containerName}
changed state to: {state}"));
+ private void HandleClusterStateChange(string containerName, string state)
=> Current.SendDiagnosticMessage($"The {containerName} changed state to:
{state}");
private void SubscribeToContainerEvents(IContainer container, string
containerName)
{
diff --git a/tests/DotPulsar.Tests/xunit.runner.json
b/tests/DotPulsar.Tests/xunit.runner.json
deleted file mode 100644
index 6c0d1e4..0000000
--- a/tests/DotPulsar.Tests/xunit.runner.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
- "diagnosticMessages": true
-}