An open API service indexing awesome lists of open source software.

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 を作成する際のデモアプリ

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
```