Run al tests

From microsoft/AL · View interactive version

Run al tests is an AI agent skill from the GitHub repository microsoft/AL. Runs a published AL test codeunit against the provisioned BCInsider sandbox through the public prerelease ALTool.

How to use this skill

Skill file

  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

```

  1. Add --testmethods only when specific procedures are requested.
  2. Preserve the JSON response and native exit code; report passed, failed, and skipped counts.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.