---
id: change/al-go/2343
type: change
title: "#2343 RunTests action"
summary: AL-Go adds a preview useSeparateTestAction setting, off by default. When it is on, normal test execution moves from RunPipeline into a new RunTests action that runs tests with AlTool (al runtests) and produces JUnit results.
tier: official
language: en
tags:
  - feature
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-31T01:04:15.105Z"
  flags: []
generated:
  at: "2026-10-31T00:15:35.028Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: adb81ccf121dfbf1de8fe4ae2da7e7474528bed9
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2343
    title: "microsoft/AL-Go#2343: RunTests action"
    date: "2026-10-27"
    commit: adb81ccf121dfbf1de8fe4ae2da7e7474528bed9
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2343
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2343
kind: pr
base_branch: main
major: null
merged_at: "2026-10-27T14:17:26Z"
author: spetersenms
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 24
  additions: 5397
  deletions: 3
  al: 13
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/.Modules/AlToolHelper.psm1
    status: added
    reason: not-in-snapshot
  - path: Actions/.Modules/ReadSettings.psm1
    status: modified
    reason: not-in-snapshot
  - path: Actions/.Modules/settings.schema.json
    status: modified
    reason: not-in-snapshot
  - path: Actions/AnalyzeTests/TestResultAnalyzer.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/RunPipeline/README.md
    status: modified
    reason: not-in-snapshot
  - path: Actions/RunPipeline/RunPipeline.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/RunTests/AlToolTestRunner.psm1
    status: added
    reason: not-in-snapshot
  - path: Actions/RunTests/README.md
    status: added
    reason: not-in-snapshot
  - path: Actions/RunTests/RunTests.ps1
    status: added
    reason: not-in-snapshot
  - path: Actions/RunTests/RunTests.psm1
    status: added
    reason: not-in-snapshot
  - path: Actions/RunTests/action.yaml
    status: added
    reason: not-in-snapshot
  - path: Templates/AppSource App/.github/workflows/_BuildALGoProject.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/Per Tenant Extension/.github/workflows/_BuildALGoProject.yaml
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
  - platform
quote: null
joined_against:
  major: null
  commit: null
---

# #2343 RunTests action

> AL-Go adds a preview useSeparateTestAction setting, off by default. When it is on, normal test execution moves from RunPipeline into a new RunTests action that runs tests with AlTool (al runtests) and produces JUnit results.

[Pull request](https://github.com/microsoft/AL-Go/pull/2343) · merged into `main` on 2026-10-27 by spetersenms · 24 files (+5397 -3), 13 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Preview feature with useSeparateTestAction setting (defaults to false) to move tests from RunPipeline to new RunTests action
- RunPipeline builds and publishes apps, then RunTests executes them using al runtests command
- Supports test type filtering for UnitTest, IntegrationTest, and Uncategorized categories
- Only normal tests are moved; BCPT, page scripting, and multi-country tests remain in pipeline
- Maintains BCH for container management and metadata operations while AlTool handles actual test execution

## AL objects touched

- `Actions/.Modules/AlToolHelper.psm1`: added, not in the BC? snapshot yet
- `Actions/.Modules/ReadSettings.psm1`: modified, not in the BC? snapshot
- `Actions/.Modules/settings.schema.json`: modified, not in the BC? snapshot
- `Actions/AnalyzeTests/TestResultAnalyzer.ps1`: modified, not in the BC? snapshot
- `Actions/RunPipeline/README.md`: modified, not in the BC? snapshot
- `Actions/RunPipeline/RunPipeline.ps1`: modified, not in the BC? snapshot
- `Actions/RunTests/AlToolTestRunner.psm1`: added, not in the BC? snapshot yet
- `Actions/RunTests/README.md`: added, not in the BC? snapshot yet
- `Actions/RunTests/RunTests.ps1`: added, not in the BC? snapshot yet
- `Actions/RunTests/RunTests.psm1`: added, not in the BC? snapshot yet
- `Actions/RunTests/action.yaml`: added, not in the BC? snapshot yet
- `Templates/AppSource App/.github/workflows/_BuildALGoProject.yaml`: modified, not in the BC? snapshot
- `Templates/Per Tenant Extension/.github/workflows/_BuildALGoProject.yaml`: modified, not in the BC? snapshot

## Context

- Systems: development, platform

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
