Skip to content

Commit

Permalink
Update aider.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Nov 2, 2024
1 parent 48a36af commit 9642b4e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .aider/aider.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,15 @@ function Update-PesterTest {

Write-Verbose "Invoking Aider to update test file normally"
Invoke-Aider @aiderParams

if (-not $NoTest) {
if ($script:xplat -contains $cmdName) {
Write-Warning "Running integration and unit tests for $filename"
aider --test --test-cmd "/workspace/tests/Configs/aider.test.ps1 -TestIntegration -ScriptAnalyzer $filename"
} else {
Write-Warning "Running unit tests for $filename"
aider --test --test-cmd "/workspace/tests/Configs/aider.test.ps1 $filename"
}
}
}
}
if (-not $NoTest) {
if ($script:xplat -contains $cmdName) {
Write-Warning "Running integration and unit tests for $filename"
aider --test --test-cmd "/workspace/tests/Configs/aider.test.ps1 -TestIntegration -ScriptAnalyzer $filename"
} else {
Write-Warning "Running unit tests for $filename"
aider --test --test-cmd "/workspace/tests/Configs/aider.test.ps1 $filename"
}
}
}
Expand Down

0 comments on commit 9642b4e

Please sign in to comment.