Skip to content
forked from microsoft/vstest

Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.

License

Notifications You must be signed in to change notification settings

AF250329/vstest

This branch is 82 commits ahead of, 1399 commits behind microsoft/vstest:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

92c5017 · May 10, 2022
Aug 23, 2021
May 20, 2021
Jan 31, 2022
Feb 12, 2022
Feb 14, 2022
Feb 28, 2022
May 10, 2022
Oct 11, 2021
Feb 23, 2022
Feb 12, 2022
Feb 4, 2022
Mar 11, 2017
Feb 15, 2022
Dec 9, 2021
Apr 19, 2021
May 20, 2021
Jul 20, 2020
Nov 26, 2021
Feb 28, 2022
Feb 15, 2022
Jun 18, 2021
Jan 31, 2022
Feb 12, 2017
Apr 18, 2017
Feb 23, 2022
Feb 12, 2017
Apr 18, 2017

Repository files navigation

VS Test platform

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.

Getting Started

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 of vstests.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 in win7-x64\Extensions folder and some goes to win7-x64\x86 or win7-x64\x64 folders... So the best way to arrange the files it to publish it with build.ps1 script and then just overwrite the files in vstest.console output folder. Then - when vstest.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 version 2.2.8 (on lower versions you could run into Could not load type 'Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior exception) and actual MSTest.TestFramework with version 2.2.8 also.

Original README of this project (including links to documentation exist at \wiki on top)

Enjoy ! 😉

Notes

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

About

Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 96.5%
  • PowerShell 2.3%
  • Shell 1.0%
  • CMake 0.1%
  • XSLT 0.1%
  • HTML 0.0%