https://github.com/semba-yui/demo-dotnet-rest-api
.NET 8 で REST API を作成する際のデモアプリ
https://github.com/semba-yui/demo-dotnet-rest-api
dotnet rest-api xunit
Last synced: 3 months ago
JSON representation
.NET 8 で REST API を作成する際のデモアプリ
- Host: GitHub
- URL: https://github.com/semba-yui/demo-dotnet-rest-api
- Owner: semba-yui
- License: mit
- Created: 2024-07-24T08:44:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-24T22:22:22.000Z (almost 2 years ago)
- Last Synced: 2025-03-18T10:46:53.232Z (over 1 year ago)
- Topics: dotnet, rest-api, xunit
- Language: C#
- Homepage:
- Size: 126 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# demo-dotnet-rest-api
## Restore
```shell
dotnet restore
```
## Build
```shell
dotnet build
```
## Test
```shell
dotnet test
```
## Coverage Tool
```shell
dotnet tool restore
```
## Coverage Report
### Collect Coverage
```shell
dotnet test --collect:"XPlat Code Coverage" --settings tests/DemoRestApi.IntegrationTests/coverlet.collect.runsettings.xml
```
### Generate Report
{guid} は実行時に生成される GUID に置き換える。
```shell
dotnet reportgenerator -reports:"tests/DemoRestApi.IntegrationTests/TestResults/{guid}/coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html
```