I am writing .Net 4.8 code and have MSTest tests in a single assembly dll. Using Azure Devops git as repository. The code in the branch should check-in only if all unit test PASS. Is it possible? I am also ok, if required, to use some script like powershell etc.. to help me enable this.
相关问题
- Docker task in Azure devops won't accept "$(pw
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- Authentication Failure using Git-LFS Azure DevOps
相关文章
- How to show location of errors, references to memb
- Log4Net Multiple Projects
- How to track MongoDB requests from a console appli
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- Attribute filter syntax for code coverage in TeamC
- Build errors of missing packages in Visual Studio
- Copy different file to output directory for releas
you can use branch policies to force a specific build to run and succeed before PR can be merged. You have to create a build that runs those tests and configure branch policies to run that build (consult the link below to figure out how to do that exactly).
in short: go to branches, click 3 dots near branch and choose "branch policies". then configure build validation.
https://docs.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops#build-validation