docs: update CLAUDE.md with new test project structure

Reflects the split of NATS.Server.Tests into 10 feature-focused
test projects plus a shared TestUtilities library.
This commit is contained in:
Joseph Doherty
2026-03-12 16:26:48 -04:00
parent 7fbffffd05
commit bc308a4349

View File

@@ -25,8 +25,12 @@ dotnet test -v normal
# Run a single test project
dotnet test tests/NATS.Server.Tests
# Run a specific test project
dotnet test tests/NATS.Server.Core.Tests
dotnet test tests/NATS.Server.JetStream.Tests
# Run a specific test by name
dotnet test tests/NATS.Server.Tests --filter "FullyQualifiedName~TestName"
dotnet test tests/NATS.Server.Core.Tests --filter "FullyQualifiedName~TestName"
# Run the NATS server (default port 4222)
dotnet run --project src/NATS.Server.Host
@@ -58,13 +62,18 @@ src/
NATS.Server.Host/ # Executable host app
Program.cs # Entry point, CLI arg parsing (-p port)
tests/
NATS.Server.Tests/ # xUnit test project
ParserTests.cs # Protocol parser tests
SubjectMatchTests.cs # Subject validation & matching tests
SubListTests.cs # Subscription list trie tests
ClientTests.cs # Client-level protocol tests
ServerTests.cs # Server pubsub/wildcard tests
IntegrationTests.cs # End-to-end tests using NATS.Client.Core NuGet
NATS.Server.TestUtilities/ # Shared helpers, fixtures, parity tools (class library)
NATS.Server.Core.Tests/ # Client, server, parser, config, subscriptions, protocol
NATS.Server.Auth.Tests/ # Auth, accounts, permissions, JWT, NKeys
NATS.Server.JetStream.Tests/ # JetStream API, streams, consumers, storage, cluster
NATS.Server.Raft.Tests/ # RAFT consensus
NATS.Server.Clustering.Tests/ # Routes, cluster topology, inter-server protocol
NATS.Server.Gateways.Tests/ # Gateway connections, interest modes
NATS.Server.LeafNodes.Tests/ # Leaf node connections, hub-spoke
NATS.Server.Mqtt.Tests/ # MQTT protocol bridge
NATS.Server.Monitoring.Tests/ # Monitor endpoints, events, system events
NATS.Server.Transport.Tests/ # WebSocket, TLS, OCSP, IO
NATS.E2E.Tests/ # End-to-end tests using NATS.Client.Core NuGet
```
## Go Reference Commands