Skip to main content

This example show you how to run Visual Studio Test Projects from the command-line.

@echo off
set failed=0
for /f %%a in ('dir %~dp0..\test\*.csproj /b /s ^| find /i "Tests.csproj"') do dotnet test %%a || set failed=1
exit /B %failed%