12 lines
413 B
PowerShell
12 lines
413 B
PowerShell
# 获取所有符合条件的测试文件
|
|
$testFiles = Get-ChildItem -Path "./tests" -Filter "Test*.php"
|
|
|
|
# 遍历每个测试文件并执行 PHPUnit
|
|
foreach ($testFile in $testFiles) {
|
|
$filePath = $testFile.FullName # 获取文件的完整路径
|
|
Write-Host "Running tests on: $filePath"
|
|
|
|
# 执行 PHPUnit 测试
|
|
& ./vendor/bin/phpunit --bootstrap support/bootstrap.php --testdox $filePath
|
|
}
|