Bug fixes (#4810)
* Bug fixes * Nitpick * -Fixed failed tests -Added test to cover trx logger scenario. * Fix for issue https://github.com/Microsoft/vstest/issues/241 * Fix for failed test. We have taken fix where dotnet test will return nonzero if test fails. In multi TFM scenario if test fails it termates the whole process as dotnet test is returning 1. As a fix of this we should continue if some test fails for next TFM * Bump Microsoft.Testplatform.CLI and Microsoft.NET.Test.Sdk version
This commit is contained in:
parent
3a3ab7e0b0
commit
eb8e0cfa40
12 changed files with 64 additions and 18 deletions
|
@ -11,8 +11,10 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<VSTestTaskAssemblyFile Condition="$(VSTestTaskAssemblyFile) == ''">$(MSBuildExtensionsPath)\Microsoft.TestPlatform.Build.dll</VSTestTaskAssemblyFile>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
</PropertyGroup>
|
||||
<UsingTask TaskName="Microsoft.TestPlatform.Build.Tasks.BuildLogTask" AssemblyFile="$(VSTestTaskAssemblyFile)" />
|
||||
<!--
|
||||
===================================================================================
|
||||
DispatchToInnerBuildsWithVSTestTarget
|
||||
|
@ -38,7 +40,8 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
<MSBuild Projects="$(MSBuildProjectFile)"
|
||||
Condition="'$(TargetFrameworks)' != '' "
|
||||
Targets="$(InnerVSTestTargets)"
|
||||
Properties="TargetFramework=%(_TargetFramework.Identity);VSTestNoBuild=true">
|
||||
Properties="TargetFramework=%(_TargetFramework.Identity);VSTestNoBuild=true"
|
||||
ContinueOnError="true">
|
||||
<Output ItemName="InnerOutput" TaskParameter="TargetOutputs" />
|
||||
</MSBuild>
|
||||
</Target>
|
||||
|
@ -62,11 +65,17 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
=================================================================================
|
||||
-->
|
||||
<Target Name="VSTest" >
|
||||
<CallTarget Condition="'$(VSTestNoBuild)' != 'true'" Targets="Build" />
|
||||
<CallTarget Condition="'$(VSTestNoBuild)' != 'true'" Targets="BuildProject" />
|
||||
<CallTarget Targets="SetVSTestInnerTarget" />
|
||||
<CallTarget Targets="DispatchToInnerBuildsWithVSTestTarget" />
|
||||
</Target>
|
||||
|
||||
<Target Name="BuildProject">
|
||||
<Microsoft.TestPlatform.Build.Tasks.BuildLogTask BuildStarted="True" />
|
||||
<CallTarget Targets="Build" />
|
||||
<Microsoft.TestPlatform.Build.Tasks.BuildLogTask />
|
||||
</Target>
|
||||
|
||||
<Target Name="SetVSTestInnerTarget" Returns="@(InnerOutput)">
|
||||
<PropertyGroup Condition="'$(InnerVSTestTargets)' == ''">
|
||||
<InnerVSTestTargets>VSTest</InnerVSTestTargets>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue