Skip to content

Commit

Permalink
Check whether testapps are installed (#3810)
Browse files Browse the repository at this point in the history
Fixes microsoft/AL-Go#1405

---------

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Jan 21, 2025
1 parent eda1890 commit 9c39c52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AppHandling/Run-AlPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2679,9 +2679,13 @@ $testFolders | ForEach-Object {
}
}

$installedAppIds = @(GetInstalledAppIds -useCompilerFolder $useCompilerFolder -filesOnly $filesOnly -compilerFolder (GetCompilerFolder) -packagesFolder $packagesFolder)
$testAppIds.Keys | ForEach-Object {
$disabledTests = @()
$id = $_
if ($installedAppIds -notcontains $id) {
throw "App with $id is not installed, cannot run tests"
}
$folder = $testAppIds."$id"

if ($folder) {
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
6.0.31
New-BcCompilerFolder with base artifacts doesn't locate apps in version 25.0 due to a rename of the applications folder (was Applications)
Run-AlPipeline might try to run tests even though a test app isn't installed (see https://github.com/microsoft/AL-Go/issues/1405)

6.0.30
Issue 3762 Give Option to Choose SQL PowerShell Module When Restoring From BacPac
Expand Down

0 comments on commit 9c39c52

Please sign in to comment.