Skip to main content

run-al-tests

Runs a published AL test codeunit against the provisioned BCInsider sandbox through the public prerelease ALTool.

Source facts

Repository
microsoft/AL
Last source activity
August 18, 2026 at 08:45
Detected SKILL.md language
English
Stars
886
Forks
285

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
run-al-tests
description
Runs a published AL test codeunit against the provisioned BCInsider sandbox through the public prerelease ALTool.
argument-hint
<codeunit-id> [project-folder] [test-methods]
1. Invoke `verify-prerelease-altool`. 2. Publish the test app with `publish-al-app`. 3. Run structured tests: ```powershell & $env:ALTOOL_PATH runtests $codeunitId ` --project $projectPath ` --server $env:BC_SERVER_URL ` --serverinstance $env:BC_SERVER_INSTANCE ` --port $env:BC_SERVER_PORT ` --tenant $env:BC_TENANT ` --authentication $env:BC_AUTHENTICATION ` --environmenttype OnPrem ``` 4. Add `--testmethods` only when specific procedures are requested. 5. Preserve the JSON response and native exit code; report passed, failed, and skipped counts.
View on GitHub