Skip to content

Testing separate test action - #9786

Draft
spetersenms wants to merge 3 commits into
mainfrom
spetersen/SeparateTestAction
Draft

Testing separate test action#9786
spetersenms wants to merge 3 commits into
mainfrom
spetersen/SeparateTestAction

Conversation

@spetersenms

@spetersenms spetersenms commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What & why

Linked work

Fixes #

How I validated this

  • I read the full diff and it contains only changes I intended.
  • I built the affected app(s) locally with no new analyzer warnings.
  • I ran the change in Business Central and confirmed it behaves as expected.
  • I added or updated tests for the new behavior, or explained below why none are needed.

What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)

Risk & compatibility

spetersenms and others added 2 commits July 27, 2026 13:56
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 <[email protected]>
… 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 <[email protected]>
@spetersenms spetersenms changed the title Spetersen/separate test action Testing separate test action Jul 28, 2026
@github-actions github-actions Bot added Build: Automation Workflows and other setup in .github folder Build: scripts & configs Build scripts and configuration files Other GitHub request for other area than SCM, Finance or Integration Ownership: Needs Review Ownership is Other, low confidence, or needs manual correction labels Jul 28, 2026
@github-actions

Copy link
Copy Markdown
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 <[email protected]>
# (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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build: Automation Workflows and other setup in .github folder Build: scripts & configs Build scripts and configuration files Other GitHub request for other area than SCM, Finance or Integration Ownership: Needs Review Ownership is Other, low confidence, or needs manual correction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants