Skip to content

Commit 69723c3

Browse files
Copilotstephentoub
andcommitted
Add documentation for running manual tests
Co-authored-by: stephentoub <[email protected]>
1 parent f767597 commit 69723c3

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

tests/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Running Tests
2+
3+
## Manual Tests
4+
5+
Some tests in this repository are marked with the `[Trait("Execution", "Manual")]` attribute. These tests require external dependencies or network connectivity and are not run by default in CI/CD pipelines.
6+
7+
### Microsoft Learn MCP Server Tests
8+
9+
The `MicrosoftLearnMcpServerTests` class contains integration tests that connect to the Microsoft Learn MCP server at `https://learn.microsoft.com/api/mcp` using Streamable HTTP transport.
10+
11+
These tests:
12+
- Require network connectivity to Microsoft Learn services
13+
- Test real-world integration with a production MCP server
14+
- Validate the Streamable HTTP transport implementation
15+
16+
#### Running the Microsoft Learn tests
17+
18+
To run these tests, use the following command:
19+
20+
```bash
21+
dotnet test --filter "(FullyQualifiedName~MicrosoftLearnMcpServerTests)"
22+
```
23+
24+
Or to run all manual tests:
25+
26+
```bash
27+
dotnet test --filter "(Execution=Manual)"
28+
```
29+
30+
To exclude manual tests from a test run:
31+
32+
```bash
33+
dotnet test --filter "(Execution!=Manual)"
34+
```
35+
36+
### Requirements
37+
38+
- .NET 10.0 SDK (as specified in `global.json`)
39+
- Internet connectivity
40+
- Access to https://learn.microsoft.com/api/mcp (ensure no firewall restrictions)

0 commit comments

Comments
 (0)