You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 💡 **Recommendations**: Get actionable suggestions to improve coverage
112
98
- 💭 **Structured Thinking**: Document and validate reasoning about complex operations
113
99
- 🧩 **AI-Optimized Reasoning**: Based on [Anthropic's research](https://www.anthropic.com/engineering/claude-think-tool) on improving LLM problem-solving
114
100
- 📋 **Task Planning**: Break down complex problems into manageable steps
Copy file name to clipboardExpand all lines: docs/getting-started.md
-51Lines changed: 0 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,57 +122,6 @@ dotnet run --project src/NetContextClient/NetContextClient.csproj -- add-ignore-
122
122
dotnet run --project src/NetContextClient/NetContextClient.csproj -- get-ignore-patterns
123
123
```
124
124
125
-
## Using Coverage Analysis
126
-
127
-
NetContextServer includes powerful test coverage analysis capabilities that help you understand and improve your test coverage. Here's how to get started:
128
-
129
-
### 1. Generate Coverage Reports
130
-
131
-
First, you'll need to generate a coverage report. NetContextServer supports multiple formats:
132
-
133
-
**Using Coverlet (recommended):**
134
-
```bash
135
-
dotnet test --collect:"XPlat Code Coverage"
136
-
```
137
-
This will generate a coverage report in the `TestResults` directory.
138
-
139
-
**Using LCOV:**
140
-
If you're using LCOV, make sure your test runner is configured to output LCOV format (`.info` files).
141
-
142
-
**Using Cobertura:**
143
-
For Cobertura XML format, configure your test runner to output `.cobertura.xml` files.
144
-
145
-
### 2. Analyze Coverage
146
-
147
-
Once you have a coverage report, you can analyze it using NetContextServer:
148
-
149
-
```bash
150
-
# Analyze coverage for detailed per-file information
151
-
dotnet run --project src/NetContextClient/NetContextClient.csproj -- coverage-analysis --report-path "TestResults/coverage.json"
152
-
153
-
# Get a summary of overall coverage
154
-
dotnet run --project src/NetContextClient/NetContextClient.csproj -- coverage-summary --report-path "TestResults/coverage.json"
155
-
```
156
-
157
-
### 3. Interpret Results
158
-
159
-
The coverage analysis provides several key insights:
160
-
161
-
-**Coverage Percentage**: The percentage of lines covered by tests
162
-
-**Uncovered Lines**: Specific line numbers that aren't covered by tests
163
-
-**Branch Coverage**: For methods with conditional logic, shows how many branches are covered
164
-
-**Recommendations**: Suggestions for improving coverage in specific areas
165
-
166
-
### 4. Improve Coverage
167
-
168
-
Use the analysis results to:
169
-
1. Identify files with low coverage
170
-
2. Focus on uncovered lines in critical code paths
171
-
3. Add tests for uncovered branches in complex methods
172
-
4. Track coverage trends over time
173
-
174
-
For more details on coverage analysis commands and options, see the [Tool Reference](tool-reference.md#coverage-analysis-tools).
0 commit comments