@@ -13,47 +13,5 @@ The conformance tests verify that the C# MCP server implementation adheres to th
1313
1414## Running the Tests
1515
16- Since these tests require Node.js/npm to be installed, they are marked as manual tests and excluded from the default test run.
17-
18- ### Run conformance tests explicitly
19-
20- ``` bash
21- # Run only conformance tests
22- dotnet test tests/Conformance/ModelContextProtocol.ConformanceTests --filter ' Execution=Manual'
23-
24- # Or run all manual tests across the solution
25- dotnet test --filter ' Execution=Manual'
26- ```
27-
28- ### Skip conformance tests (default behavior)
29-
30- ``` bash
31- # Normal test run excludes Manual tests
32- dotnet test --filter ' (Execution!=Manual)'
33-
34- # Or simply
35- dotnet test
36- ```
37-
38- ## How It Works
39-
40- 1 . ** ClassInitialize** - Starts the ConformanceServer on port 3001 and waits for it to be ready
41- 2 . ** Test Execution** - Runs ` npx @modelcontextprotocol/conformance server --url http://localhost:3001 `
42- 3 . ** Result Reporting** - Parses the conformance test output and reports pass/fail to MSTest
43- 4 . ** ClassCleanup** - Shuts down the ConformanceServer
44-
45- ## Troubleshooting
46-
47- If the tests fail:
48-
49- 1 . Ensure Node.js and npm are installed: ` node --version && npm --version `
50- 2 . Check that port 3001 is not already in use
51- 3 . Review the test output for specific conformance test failures
52- 4 . The ConformanceServer logs are captured in the test output
53-
54- ## Implementation Details
55-
56- - ** Test Framework** : xUnit v3 with Microsoft.Testing.Platform
57- - ** Server** : ASP.NET Core-based ConformanceServer with HTTP transport
58- - ** Test Runner** : Uses ` npx ` to run the official MCP conformance test suite
59- - ** Lifecycle** : Uses xUnit's ` IAsyncLifetime ` to manage server startup/shutdown per test class
16+ These tests will run as part of the standard ` dotnet test ` command if Node.js is installed
17+ but will be skipped if Node.js is not detected.
0 commit comments