diff options
author | Santiago Fernandez Madero <safern@microsoft.com> | 2017-09-05 23:30:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 23:30:09 +0300 |
commit | 664ca9508a03483a7fb2714b55b9cba885593d90 (patch) | |
tree | 1acf1b4b0c8aa97331bd2625a07dc496a8d03c90 /dir.props | |
parent | 23cd62dfaf37712c4acf765e9b21914f848e0d84 (diff) |
Add BinPlaceConfiguration for test projects to have a working directory per BuildConfiguration (#23633)
* With this change we will have the next behavior when building/running tests:
-When building the tests we will still bin place the test assets to the OutputDirectory (corefx\bin\OSGroup.Configuration\TestProject\TargetGroup/)
-When running the tests we will bin place the tests assets to this new TestPath which will be the TestPath. This new path will be the test's working directory where we will bin place the RunTests.cmd and necessary dependencies in tests.targets. Also the testResults.xml will be found here after the test execution.
-TestPath is set to be bin/tests/<TestProject>/<BuildConfiguration>/ (i.e corefx\bin\tests\System.Collections.Immutable.Tests\netcoreapp-Windows_NT-Debug-x64) in dir.props
-This TestPath will be added to the BinPlaceDir in FrameworkTargeting.targets when BinPlaceTest is set to true. Then in the BinPlaceFiles target the test assets will be hardlinked to the TestPath.
This will isolate every test execution per build configuration and will allow people to run the same test project for all of the supported configurations on the same repo without having to clean the repo.
Diffstat (limited to 'dir.props')
-rw-r--r-- | dir.props | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -236,6 +236,7 @@ <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(IntermediateOutputRootPath)$(MSBuildProjectName)/$(TargetOutputRelPath)</IntermediateOutputPath> <RuntimePath Condition="'$(RuntimePath)' == ''">$(BinDir)runtime/$(BuildConfiguration)/</RuntimePath> + <TestPath Condition="'$(TestPath)' == ''">$(TestWorkingDir)$(MSBuildProjectName)/$(BuildConfiguration)/</TestPath> <RefRootPath>$(BinDir)ref/</RefRootPath> <BuildConfigurationRefPath>$(RefRootPath)$(_bc_TargetGroup)/</BuildConfigurationRefPath> <BuildConfigurationRefPath Condition="$(_bc_TargetGroup.EndsWith('aot'))">$(RefRootPath)$(_bc_TargetGroup.TrimEnd('aot'))/</BuildConfigurationRefPath> |