Skip to content

Commit 9c8347d

Browse files
committed
2 parents 5912b99 + 86a1b50 commit 9c8347d

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,18 @@ Decorate your Xunit test class with the following attribute and associate ```Tes
5555
## Examples
5656
Please [follow this link](https://github.com/Umplify/xunit-dependency-injection/tree/main/examples/Xunit.Microsoft.DependencyInjection.ExampleTests) to view a couple of examples on utilizing this library.
5757

58+
### One more thing
59+
Do not forget to include the following nuget packages in your Xunit project:
60+
61+
```xml
62+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.10" />
63+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.10" />
64+
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.10" />
65+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.1.10" />
66+
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="3.1.10" />
67+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.10" />
68+
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.10" />
69+
```
70+
5871
## A note on .net 5.0
5972
The .net 5.0 version of this library will be available on early 2021 and the reason for that is Microsoft's support on Azure Functions. Should there is an absolute need on supporting .net 5.0 in this library, please create a PR.

azure-pipelines.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ trigger:
88
paths:
99
exclude:
1010
- examples/*
11+
- README.md
1112

1213
pool:
1314
vmImage: 'ubuntu-latest'
@@ -28,6 +29,13 @@ steps:
2829
command: 'build'
2930
projects: '**/Xunit.Microsoft.DependencyInjection.csproj'
3031
arguments: '--configuration $(BuildConfiguration)'
32+
- task: DotNetCoreCLI@2
33+
displayName: 'Running tests in example folder'
34+
inputs:
35+
command: 'test'
36+
projects: '**/examples/Xunit.Microsoft.DependencyInjection.ExampleTests'
37+
arguments: '--configuration $(BuildConfiguration)'
38+
testRunTitle: 'Running sample tests'
3139

3240
- script: echo Started publishing
3341
- task: DotNetCoreCLI@2

examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Xunit.Microsoft.DependencyInjection.ExampleTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageReference Include="xunit" Version="2.4.1" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
1313
<PackageReference Include="coverlet.collector" Version="1.3.0" />
14-
<PackageReference Include="Xunit.Microsoft.DependencyInjection" Version="1.0.0.32" />
14+
<PackageReference Include="Xunit.Microsoft.DependencyInjection" Version="1.0.0.42" />
1515
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.10" />
1616
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.10" />
1717
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.10" />

0 commit comments

Comments
 (0)