Browse Source

Filter dependency tests.

pull/349/head
Sebastian Stehle 7 years ago
parent
commit
d195002b2d
  1. 2
      Dockerfile
  2. 2
      Dockerfile.build
  3. 2
      tests/RunCoverage.ps1

2
Dockerfile

@ -20,7 +20,7 @@ RUN cp -a /tmp/node_modules src/Squidex/ \
# Test Backend # Test Backend
RUN dotnet restore \ RUN dotnet restore \
&& dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj \ && dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj --filter TraitName!=TraitValue \
&& dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \ && dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \ && dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj \ && dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj \

2
Dockerfile.build

@ -17,7 +17,7 @@ RUN cp -a /tmp/node_modules src/Squidex/ \
# Test Backend # Test Backend
RUN dotnet restore \ RUN dotnet restore \
&& dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj \ && dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj --filter Category!=Dependencies \
&& dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \ && dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \ && dotnet test tests/Squidex.Domain.Apps.Entities.Tests/Squidex.Domain.Apps.Entities.Tests.csproj \
&& dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj \ && dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj \

2
tests/RunCoverage.ps1

@ -25,7 +25,7 @@ if ($all -Or $infrastructure) {
&"$folderHome\.nuget\packages\OpenCover\4.7.922\tools\OpenCover.Console.exe" ` &"$folderHome\.nuget\packages\OpenCover\4.7.922\tools\OpenCover.Console.exe" `
-register:user ` -register:user `
-target:"C:\Program Files\dotnet\dotnet.exe" ` -target:"C:\Program Files\dotnet\dotnet.exe" `
-targetargs:"test $folderWorking\Squidex.Infrastructure.Tests\Squidex.Infrastructure.Tests.csproj" ` -targetargs:"test $folderWorking\Squidex.Infrastructure.Tests\Squidex.Infrastructure.Tests.csproj --filter Category!=Dependencies" `
-filter:"+[Squidex.*]* -[Squidex.Infrastructure*]*CodeGen* -[Squidex.Infrastructure*]*OrleansGeneratedCode*" ` -filter:"+[Squidex.*]* -[Squidex.Infrastructure*]*CodeGen* -[Squidex.Infrastructure*]*OrleansGeneratedCode*" `
-skipautoprops ` -skipautoprops `
-output:"$folderWorking\$folderReports\Infrastructure.xml" ` -output:"$folderWorking\$folderReports\Infrastructure.xml" `

Loading…
Cancel
Save