This is modified version of original VS Test platform that support callbacks on various stages of execution. It was created as part of the Cloud.Tests project.
- Clone this repo:
git clone [email protected]:AF250329/vstest.git
- Restore nuget packages
- Build
- Navigate to \scripts folder and run build.ps1 script
This script will publish all vstest projects - ready to use. Right now it configured to publish into
\artifacts\Debug
(or\artifacts\Release
) folder
- Copy everything from
\artifacts\Debug\net451\win7-x64
folder into output folder ofvstests.console
project:src\vstest.console\bin\Debug\net451\win7-x64
.
VSTest platform is complicated beast that has a lot of moving parts. It has special assemblies for test discovery, tests running, logs collectors, etc.. Not all of them exist in this solution - some of them downloaded by
build.ps1
script. Some projects must exist inwin7-x64\Extensions
folder and some goes towin7-x64\x86
orwin7-x64\x64
folders... So the best way to arrange the files it to publish it withbuild.ps1
script and then just overwrite the files invstest.console
output folder. Then - whenvstest.console
rebuilds it will overwrite only needed files and you won't have any files missing while VS Tests platform tries to load it dynamically.
- Make sure that 'test' project that you gonna work on it has Nuget of
MSTest.TestAdapter
minimum version2.2.8
(on lower versions you could run intoCould not load type 'Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior
exception) and actualMSTest.TestFramework
with version2.2.8
also.
Original README of this project (including links to documentation exist at \wiki on top)
Enjoy ! 😉
UAP platform target removed from projects because it demands .NET Portable installation. This installation is not compatible with Windows Server 2019 Core windows because it demands very specific parts in Windows that is missing. So removing .NET Portable (UAP target) allow to compile/run this project on Windows Server 2019 Core