From 44db509eaf3c4565f5a3bb71fa9d6cf82f2eecf0 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 7 Jul 2026 11:26:55 -0400 Subject: [PATCH] docs(claude): document test command + CLI.Tests slnx-exclusion gotcha `dotnet test ZB.MOM.WW.ScadaBridge.slnx` silently skips ZB.MOM.WW.ScadaBridge.CLI.Tests (the one test project not in the slnx), so a green solution run can hide CLI tests that never compiled. Add the test command and point at testing the CLI project directly. --- CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CLAUDE.md b/CLAUDE.md index 387e606f..f0cc472d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -66,6 +66,7 @@ Other peers in the `scadaproj` family (see `scadaproj/CLAUDE.md` for details): ` - Use `git diff` to review changes before committing. - Commit related changes together with a descriptive message summarizing the design decision and the implementation slice. - After non-trivial code changes, build (`dotnet build ZB.MOM.WW.ScadaBridge.slnx`) and run relevant tests before declaring done; for cluster-runtime changes, rebuild the image with `bash docker/deploy.sh`. +- Run tests with `dotnet test ZB.MOM.WW.ScadaBridge.slnx`, **but `ZB.MOM.WW.ScadaBridge.CLI.Tests` is not in the slnx** and is silently skipped — when touching the CLI, test that project directly (`dotnet test tests/ZB.MOM.WW.ScadaBridge.CLI.Tests`), or a green solution run can hide CLI tests that never compiled. - **Propagate cross-repo changes to the umbrella index.** This repo is indexed by the parent workspace `~/Desktop/scadaproj`. When a fact its index records changes here — remote/push status, stack/component summary, cross-project wire relationships (OPC UA → OtOpcUa, gRPC → mxaccessgw), or the solution/namespace shape — update the **ScadaBridge entry in [`../scadaproj/CLAUDE.md`](../scadaproj/CLAUDE.md)** in the same change so the umbrella index never drifts from this repo. (Mirrors the same rule in the peer repos, e.g. `MxAccessGateway`/`HistorianGateway`.) ## Current Component List (27 components)