Skip to content

Commit 642390d

Browse files
authored
fix project path for C# tests, add readme on tests (#1082)
1 parent a5be8fa commit 642390d

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

CSharp/Tests/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Running C# Tests
2+
3+
Requires [.NET SDK](https://dotnet.microsoft.com/download) (6.0+).
4+
5+
## Run all tests
6+
7+
```bash
8+
dotnet test CSharp/Tests/Tests1/Tests1.csproj
9+
dotnet test CSharp/Tests/Tests2/TestsZ.csproj
10+
```
11+
12+
## Run a specific test project
13+
14+
| Project | What it covers |
15+
|---------|----------------|
16+
| `Tests1` | Core clipping, offsets, polytree, open paths |
17+
| `Tests2` (TestsZ) | Z-callback / USINGZ functionality |
18+
19+
## Useful flags
20+
21+

CSharp/Tests/Tests2/TestsZ.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<ProjectReference Include="..\..\USINGZ\Clipper2LibZ.csproj" />
27+
<ProjectReference Include="..\..\USINGZ\Clipper2Lib_Z.csproj" />
2828
<ProjectReference Include="..\..\Utils\ClipFileIO\Clipper.FileIO.csproj" />
2929
</ItemGroup>
3030

0 commit comments

Comments
 (0)