芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/_syntaxis.fr/wp-content/plugins/admin-menu-editor-pro/tests/run.ps1
# You can specify the test file to execute as the first argument. # By default, we'll run all tests in the "casper-tests" subdirectory. param( [string]$file = ".\casper-tests" ) # Temporarily change to the script directory so we can use relative paths (for simplicity). $scriptPath = $MyInvocation.MyCommand.Path $scriptDir = Split-Path $scriptPath Push-Location $scriptDir # You can leave out the "casper-tests" directory from the test filename # and we'll prepend it automatically. $fileExists = Test-Path $file; $fileExistsInCasperTests = (Test-Path (".\casper-tests\" + $file)); if ( ($fileExists -ne $true) -and ($fileExistsInCasperTests -eq $true) ) { $file = ".\casper-tests\" + $file; } # Invoke the test runner. casperjs test --includes="config.js,helpers.js" $file # Switch back to the previous directory. Pop-Location