Skip to content

Commit 9c39c52

Browse files
authored
Check whether testapps are installed (#3810)
Fixes microsoft/AL-Go#1405 --------- Co-authored-by: freddydk <[email protected]>
1 parent eda1890 commit 9c39c52

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

AppHandling/Run-AlPipeline.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -2679,9 +2679,13 @@ $testFolders | ForEach-Object {
26792679
}
26802680
}
26812681

2682+
$installedAppIds = @(GetInstalledAppIds -useCompilerFolder $useCompilerFolder -filesOnly $filesOnly -compilerFolder (GetCompilerFolder) -packagesFolder $packagesFolder)
26822683
$testAppIds.Keys | ForEach-Object {
26832684
$disabledTests = @()
26842685
$id = $_
2686+
if ($installedAppIds -notcontains $id) {
2687+
throw "App with $id is not installed, cannot run tests"
2688+
}
26852689
$folder = $testAppIds."$id"
26862690

26872691
if ($folder) {

ReleaseNotes.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
6.0.31
22
New-BcCompilerFolder with base artifacts doesn't locate apps in version 25.0 due to a rename of the applications folder (was Applications)
3+
Run-AlPipeline might try to run tests even though a test app isn't installed (see https://github.com/microsoft/AL-Go/issues/1405)
34

45
6.0.30
56
Issue 3762 Give Option to Choose SQL PowerShell Module When Restoring From BacPac

0 commit comments

Comments
 (0)