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:
25
CLAUDE.md
25
CLAUDE.md
@@ -25,8 +25,12 @@ dotnet test -v normal
|
|||||||
# Run a single test project
|
# Run a single test project
|
||||||
dotnet test tests/NATS.Server.Tests
|
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
|
# 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)
|
# Run the NATS server (default port 4222)
|
||||||
dotnet run --project src/NATS.Server.Host
|
dotnet run --project src/NATS.Server.Host
|
||||||
@@ -58,13 +62,18 @@ src/
|
|||||||
NATS.Server.Host/ # Executable host app
|
NATS.Server.Host/ # Executable host app
|
||||||
Program.cs # Entry point, CLI arg parsing (-p port)
|
Program.cs # Entry point, CLI arg parsing (-p port)
|
||||||
tests/
|
tests/
|
||||||
NATS.Server.Tests/ # xUnit test project
|
NATS.Server.TestUtilities/ # Shared helpers, fixtures, parity tools (class library)
|
||||||
ParserTests.cs # Protocol parser tests
|
NATS.Server.Core.Tests/ # Client, server, parser, config, subscriptions, protocol
|
||||||
SubjectMatchTests.cs # Subject validation & matching tests
|
NATS.Server.Auth.Tests/ # Auth, accounts, permissions, JWT, NKeys
|
||||||
SubListTests.cs # Subscription list trie tests
|
NATS.Server.JetStream.Tests/ # JetStream API, streams, consumers, storage, cluster
|
||||||
ClientTests.cs # Client-level protocol tests
|
NATS.Server.Raft.Tests/ # RAFT consensus
|
||||||
ServerTests.cs # Server pubsub/wildcard tests
|
NATS.Server.Clustering.Tests/ # Routes, cluster topology, inter-server protocol
|
||||||
IntegrationTests.cs # End-to-end tests using NATS.Client.Core NuGet
|
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
|
## Go Reference Commands
|
||||||
|
|||||||
Reference in New Issue
Block a user