Skip to content

Commit 6d41eee

Browse files
committed
Updating docker file
1 parent 27ec431 commit 6d41eee

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

dotnetv4/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,14 @@ COPY . /dotnetv4
1212

1313
RUN cd /dotnetv4 && dotnet build -v=q --property WarningLevel=0 /clp:ErrorsOnly --nologo
1414

15-
CMD ["dotnet", "test", "dotnetv3", "--filter", "Category=Unit|Category=Weathertop", "--verbosity=quiet", "/clp:ErrorsOnly", "--nologo"]
15+
# Run the tests from the settings file.
16+
CMD ["vstest.console.exe", "@testsettings.txt"]
17+
18+
# Install the test converter tool
19+
CMD ["dotnet", "new", "tool-manifest"]
20+
CMD ["dotnet", "tool", "install", "DotnetWeathertopJsonReporter", "--local"]
21+
# Output the json file to weathertop\weathertop-report.json
22+
CMD ["dotnet", "tool", "run", "DotnetWeathertopJsonReporter", "-t", "TestResults/dotnet4_results.trx"
23+
24+
# Old command
25+
# CMD ["dotnet", "test", "dotnetv4", "--filter", "Category=Unit|Category=Weathertop", "--verbosity=quiet", "/clp:ErrorsOnly", "--nologo"]

dotnetv4/testsettings.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Aurora\Tests\bin\Debug\net8.0\AuroraTests.dll
2+
Cloudwatch\Tests\bin\Debug\net8.0\CloudWatchTests.dll
3+
--logger:"trx;LogFileName=dotnetv4_results.trx"

0 commit comments

Comments
 (0)