From 7eb7901d88912ecf154657554443d754250dd227 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 21 Nov 2025 23:29:27 +0100 Subject: [PATCH] Update Copilot instructions for MTP --- .github/copilot-instructions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index dc8f0ca6d..7633b724a 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -100,7 +100,8 @@ The SDK consists of three main packages: - Mock external dependencies (filesystem, HTTP clients) rather than calling real services - Use `CancellationTokenSource` with timeouts to prevent hanging tests - Dispose resources properly (servers, clients, transports) using `IDisposable` or `await using` -- Run tests with: `dotnet test --filter '(Execution!=Manual)'` +- Run tests with: `dotnet test --filter-not-trait 'Execution=Manual'` +- Valid test filter switches include: `--filter-class`, `--filter-not-class`, `--filter-method`, `--filter-not-method`, `--filter-namespace`, `--filter-not-namespace`, `--filter-not-trait`, `--filter-trait`. The switches `--filter-class` and `--filter-method` expect fully qualified names, unless a filter is used as a prefix like `--filter-class "*.SomeClassName"` or `--filter-method "*.SomeMethodName"`. These switches can be repeated to run tests on multiple classes or methods at once, e.g., `--filter-method "*.SomeMethodName1" --filter-method "*.SomeMethodName2"`. ## Build and Development