Skip to content

Commit f5968b0

Browse files
committed
readme
tests report pipline results pipline build path trx build tests tests reports-tests tests
1 parent 29f6842 commit f5968b0

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,25 @@ jobs:
5858
- name: Build
5959
run: dotnet build --no-restore
6060
- name: Test
61+
run: dotnet test --no-build --logger 'trx;LogFileName=test-results.trx'
62+
env:
63+
DEFAULT_REGION: eu-west-1
64+
AWS_ACCESS_KEY_ID: localkey
65+
AWS_SECRET_ACCESS_KEY: localsecret
66+
- name: Collect Code Coverage
6167
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=ManagedCode.Storage.Tests/lcov.info
6268
env:
6369
DEFAULT_REGION: eu-west-1
6470
AWS_ACCESS_KEY_ID: localkey
6571
AWS_SECRET_ACCESS_KEY: localsecret
6672

73+
- name: test-reports
74+
uses: dorny/test-reporter@v1.5.0
75+
with:
76+
name: Test Reporter
77+
reporter: dotnet-trx
78+
path: ManagedCode.Storage.Tests/test-results.trx
79+
6780
- name : coverlet
6881
uses: b3b00/coverlet-action@1.1.9
6982
with:

ManagedCode.Storage.Tests/ManagedCode.Storage.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<LangVersion>10</LangVersion>
88
<Nullable>enable</Nullable>
99
</PropertyGroup>
10+
<PropertyGroup>
11+
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
12+
<VSTestResultsDirectory>$(MSBuildThisFileDirectory)</VSTestResultsDirectory>
13+
</PropertyGroup>
1014
<ItemGroup>
1115
<None Update="xunit.runner.json">
1216
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ Default mode connection:
208208
// Startup.cs
209209
services.AddFileSystemStorageAsDefault(opt =>
210210
{
211-
opt.CommonPath = Path.Combine(Environment.CurrentDirectory, "{YOUR_BUCKET_NAME}");
212-
opt.Path = "{YOUR_BUCKET_NAME}";
211+
opt.BaseFolder = Path.Combine(Environment.CurrentDirectory, "{YOUR_BUCKET_NAME}");
213212
});
214213
```
215214
Using in default mode:
@@ -230,8 +229,7 @@ Provider-specific mode connection:
230229
// Startup.cs
231230
services.AddFileSystemStorage(new FileSystemStorageOptions
232231
{
233-
CommonPath = Path.Combine(Environment.CurrentDirectory, "{YOUR_BUCKET_NAME}"),
234-
Path = "{YOUR_BUCKET_NAME}"
232+
BaseFolder = Path.Combine(Environment.CurrentDirectory, "{YOUR_BUCKET_NAME}"),
235233
});
236234
```
237235
Using in provider-specific mode

0 commit comments

Comments
 (0)