Testing separate test action - #9786
Draft
spetersenms wants to merge 3 commits into
Draft
Conversation
Enable the opt-in AL-Go useSeparateTestAction so BCApps test execution runs through the RunTests action (after RunPipeline builds and keeps the container alive) instead of inside RunPipeline. Test technology is unchanged (still BCH via the per-project RunTestsInBcContainer override). - .github/AL-Go-Settings.json: set useSeparateTestAction: true. - _BuildALGoProject.yaml: surface useSeparateTestAction via ReadSettings and add a Run Tests step after Build, gated on env.useSeparateTestAction, passing installTestAppsJson from DownloadProjectDependencies. - ParallelTestExecution.psm1: in Invoke-PerProjectTestRun, default the reference tenant to 'default' when the caller (RunTests override seam) supplies none, since RunTests does not pass a tenant. - ParallelTestExecution.Test.ps1: cover the tenant-defaulting behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… spetersenms/AL-Go@spetersen-microsoft-separate-test-action-bcapps - 481147f / Related to AB#539394 (#9743) No release notes available! Related to [AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394) Co-authored-by: spetersenms <spetersenms@users.noreply.github.com>
Contributor
|
Could not find a linked ADO work item. Please link one by using the pattern 'AB#' followed by the relevant work item number. You may use the 'Fixes' keyword to automatically resolve the work item when the pull request is merged. E.g. 'Fixes AB#1234' |
…st-action changes) Resolves conflicts from competing Update AL-Go System Files pointer swaps by keeping the fork-pointing system files and the RunTests wiring. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
| # (before any parallel dispatch / dot-sourced script execution). | ||
| $script:capturedTenant = '<<unset>>' | ||
| Mock -ModuleName ParallelTestExecution -CommandName Get-InstalledTestAppNames -MockWith { | ||
| param([string]$ContainerName, [string]$Tenant, [string]$Country) |
| # (before any parallel dispatch / dot-sourced script execution). | ||
| $script:capturedTenant = '<<unset>>' | ||
| Mock -ModuleName ParallelTestExecution -CommandName Get-InstalledTestAppNames -MockWith { | ||
| param([string]$ContainerName, [string]$Tenant, [string]$Country) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Linked work
Fixes #
How I validated this
What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)
Risk & compatibility