Removed references to dead code related to running tests using runtime store
This commit is contained in:
parent
283f09e80c
commit
bcabc64d9b
|
|
@ -1,50 +1,33 @@
|
||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PrepareDependsOn Condition="'$(MUSICSTORE_ASPNETCORE_STORE_FEED)' != ''">$(PrepareDependsOn);UpdateNuGetConfig</PrepareDependsOn>
|
|
||||||
<MusicStoreE2ETestProject>$(RepositoryRoot)test\MusicStore.E2ETests\MusicStore.E2ETests.csproj</MusicStoreE2ETestProject>
|
<MusicStoreE2ETestProject>$(RepositoryRoot)test\MusicStore.E2ETests\MusicStore.E2ETests.csproj</MusicStoreE2ETestProject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Target Name="UpdateNuGetConfig">
|
<Target Name="_FilterTestProjects" BeforeTargets="TestProjects"
|
||||||
<UpdatePackageSource
|
Condition="'$(RUN_TESTS_ON_NANO)'=='true' Or '$(RUN_RUNTIME_STORE_TESTS)'=='true'">
|
||||||
NuGetConfigPath="$(RepositoryRoot)NuGet.config"
|
|
||||||
SourceName="AspNetCoreStore"
|
|
||||||
SourceUri="$(MUSICSTORE_ASPNETCORE_STORE_FEED)" />
|
|
||||||
|
|
||||||
<Message Text="Updated NuGet.Config with feed '$(MUSICSTORE_ASPNETCORE_STORE_FEED)'" Importance="High" />
|
<Warning Text="Updated test projects to run only the project '$(MusicStoreE2ETestProject)' as the variable 'RUN_TESTS_ON_NANO' is set to '$(RUN_TESTS_ON_NANO)'" Condition="'$(RUN_TESTS_ON_NANO)'=='true'" />
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Target Name="_RunNanoTestsOnly"
|
<Warning Text="Updated test projects to run only the project '$(MusicStoreE2ETestProject)' as the variable 'RUN_RUNTIME_STORE_TESTS' is set to '$(RUN_RUNTIME_STORE_TESTS)'" Condition="'$(RUN_RUNTIME_STORE_TESTS)'=='true'" />
|
||||||
BeforeTargets="TestProjects"
|
|
||||||
DependsOnTargets="_FilterTestProjects"
|
|
||||||
Condition="'$(RUN_TESTS_ON_NANO)' == 'true' ">
|
|
||||||
<Warning Text="Updated test projects to run only the project '$(MusicStoreE2ETestProject)' as the variable 'RUN_TESTS_ON_NANO' is set to '$(RUN_TESTS_ON_NANO)'" />
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectsToTest Update="$(MusicStoreE2ETestProject)">
|
|
||||||
<AdditionalProperties>VSTestTestCaseFilter=E2ETests=NanoServer</AdditionalProperties>
|
|
||||||
</ProjectsToTest>
|
|
||||||
</ItemGroup>
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Target Name="_RunPackageStoreTestsOnly"
|
|
||||||
BeforeTargets="TestProjects"
|
|
||||||
DependsOnTargets="_FilterTestProjects"
|
|
||||||
Condition="'$(MUSICSTORE_ASPNETCORE_STORE_FEED)' != '' ">
|
|
||||||
<Warning Text="Updated test projects to run only the project '$(MusicStoreE2ETestProject)' as the variable 'MUSICSTORE_ASPNETCORE_STORE_FEED' is set to non empty value. Package store tests require to not have RuntimeIdentifiers on MusicStore sample which would fail other standalone tests." />
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectsToTest Update="$(MusicStoreE2ETestProject)">
|
|
||||||
<AdditionalProperties>VSTestTestCaseFilter=smoketests=usestore</AdditionalProperties>
|
|
||||||
</ProjectsToTest>
|
|
||||||
</ItemGroup>
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Target Name="_FilterTestProjects">
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectsToTest Remove="@(ProjectsToTest)" />
|
<ProjectsToTest Remove="@(ProjectsToTest)" />
|
||||||
<ProjectsToTest Include="$(MusicStoreE2ETestProject)" />
|
<ProjectsToTest Include="$(MusicStoreE2ETestProject)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Error Text="Could not find test projects to run" Condition="@(ProjectsToTest->Count()) == 0" />
|
<Error Text="Could not find test projects to run" Condition="@(ProjectsToTest->Count()) == 0" />
|
||||||
</Target>
|
|
||||||
|
|
||||||
|
<ItemGroup Condition="'$(RUN_TESTS_ON_NANO)'=='true'">
|
||||||
|
<ProjectsToTest Update="$(MusicStoreE2ETestProject)">
|
||||||
|
<AdditionalProperties>VSTestTestCaseFilter=E2ETests=NanoServer</AdditionalProperties>
|
||||||
|
</ProjectsToTest>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition="'$(RUN_RUNTIME_STORE_TESTS)'=='true'">
|
||||||
|
<ProjectsToTest Update="$(MusicStoreE2ETestProject)">
|
||||||
|
<AdditionalProperties>VSTestTestCaseFilter=smoketests=usestore</AdditionalProperties>
|
||||||
|
</ProjectsToTest>
|
||||||
|
</ItemGroup>
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue