提交 6a98a69e 编写于 作者: J Jared Parsons

Correct the invocation of RunTests

上级 3f2e6cb1
......@@ -180,9 +180,30 @@ function Test-XUnit() {
else {
$runTests = Join-Path $configDir "Exes\RunTests\RunTests.exe"
$xunitDir = Join-Path (Get-PackageDir "xunit.runner.console") "tools"
$dlls = Get-ChildItem -re -in "*.UnitTests.dll" $unitDir
$args = "$xunitDir"
if ($testDesktop) {
$dlls = Get-ChildItem -re -in "*.UnitTests.dll" $unitDir
}
elseif ($testVsi) {
$dlls = Get-ChildItem -re -in "*.IntegrationTest.dll" $unitDir
}
else {
$dlls = Get-ChildItem -re -in "*.IntegrationTest.dll" $unitDir
$args += " -trait:Feature=NetCore"
}
if ($cibuild) {
$args += " -xml -timeout:50"
$procdumpPath = Ensure-ProcDump
$args += " -procdump:$procDumpPath"
}
if ($test64) {
$args += " -test64"
}
foreach ($dll in $dlls) {
$args += " $dll"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册