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 git@github.com: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-x64folder into output folder ofvstests.consoleproject: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.ps1script. Some projects must exist inwin7-x64\Extensionsfolder and some goes towin7-x64\x86orwin7-x64\x64folders... So the best way to arrange the files it to publish it withbuild.ps1script and then just overwrite the files invstest.consoleoutput folder. Then - whenvstest.consolerebuilds 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.TestAdapterminimum version2.2.8(on lower versions you could run intoCould not load type 'Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehaviorexception) and actualMSTest.TestFrameworkwith version2.2.8also.
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