-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update test folder structure #4182
Comments
10 tasks
Run from modules $oldTestPaths=(Get-ChildItem -Filter '.test' -Directory -Recurse).FullName
foreach ($testPath in $oldTestPaths){
$e2eDestination = Join-Path $testPath "e2e"
$childTestFolders = Get-ChildItem $testPath -Exclude *e2e
if (-not (Test-Path -Path $e2eDestination)) {
New-Item -Path $testPath -Name "e2e" -ItemType Directory
}
if (-not ([string]::IsNullOrEmpty($childTestFolders.FullName))) {
$childTestFolders.FullName | Move-Item -Destination $e2eDestination
}
}
foreach ($testPath in $oldTestPaths){
$newName = $testPath -replace '.test','tests'
Rename-Item -Path $testPath -NewName $newName
} Search&Replace
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e2e
tests
foldermain.bicep
inmain.test.bicep
.shared/.scripts
.shared/.templates
The text was updated successfully, but these errors were encountered: