---
id: video/Rvgt_VXFr1I
type: video
title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
summary: "Running AL tests from Visual Studio Code in the 2026 release wave 1: test explorer, run profiles, code lens, debugging, code coverage and Copilot agent test fixing. It also covers limits: no AI or data-driven test suites, because AL test runners are not used."
tier: official
language: en
tags:
  - testing in vs code
  - test explorer
  - code coverage
  - test debugging
  - run profiles
  - test isolation
  - copilot agents
  - al test runner
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-07T22:48:50.890Z"
  flags: []
generated:
  at: "2026-10-07T22:48:50.931Z"
  pipeline: 0.2.0
  prompts:
    extract-video: 1
    summarize-video: 2
  input_hash: 44808af1c11a0ce7026aea88f32aed42729e9edfd3ff8b811841a5f68b604120
evidence:
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=17s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 17
    quote: In this release, we have added the ability to run tests in Visual Studio Code.
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=35s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 35
    quote: Part of this is a set of run profiles. There is the profile for publishing and running your tests.
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=196s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 196
    quote: But now, from VS Code, it's like really, really easy to set up a run and debug.
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=277s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 277
    quote: the good thing about having integrated with the VS Code tools is that we get the ability for agents to run tests out of
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=337s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 337
    quote: we are not using AL test runners. This means that we currently do not have any support for running AI or data-driven test suites.
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=366s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 366
    quote: we actually configure this dynamically based on the required test isolation property that's set on the test code unit.
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=378s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 378
    quote: you can disable the test integration in VS Code using the AL disable test running setting.
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=404s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 404
    quote: giving the agent the ability to run and validate its own AL test own AL code using tests um significantly improves the accuracy of
  - kind: video
    url: https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=466s
    title: "What's New: Running Tests from Visual Studio Code (2026 release wave 1)"
    date: "2026-04-01T12:01:32.000Z"
    commit: null
    t: 466
    quote: we will have a bit on the AL MCP. And this is a tool for those of you who are not using VS Code
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
video_id: Rvgt_VXFr1I
channel: yt-microsoft
source_name: Microsoft Dynamics 365 Business Central (YouTube)
url: https://www.youtube.com/watch?v=Rvgt_VXFr1I
published_at: "2026-04-01T12:01:32.000Z"
duration_s: 507
captions: full
audience:
  - developer
  - administrator
chapters:
  - t: 0
    title: Overview of Testing Capabilities
  - t: 78
    title: Testing Explorer and Code Coverage Demo
  - t: 166
    title: Debug Tests in VS Code
  - t: 254
    title: Copilot Agent for Test Fixing
  - t: 301
    title: Technical Implementation Details
  - t: 378
    title: Agentic Development Results
  - t: 404
    title: Related Resources and Conclusion
features:
  - name: Run tests in Visual Studio Code
    status: unclear
    t: 17
    verified: false
    status_source: video
  - name: Run profiles for tests
    status: unclear
    t: 35
    verified: false
    status_source: video
  - name: Code lens for test execution
    status: unclear
    t: 128
    verified: false
    status_source: video
  - name: Debug tests from VS Code
    status: unclear
    t: 196
    verified: false
    status_source: video
  - name: Copilot agent for test fixing
    status: unclear
    t: 266
    verified: false
    status_source: video
  - name: Test framework using launch.json configuration
    status: unclear
    t: 301
    verified: false
    status_source: video
  - name: No support for AI and data-driven test suites
    status: unclear
    t: 337
    verified: false
    status_source: video
  - name: Dynamic test isolation configuration
    status: unclear
    t: 352
    verified: false
    status_source: video
  - name: Disable test integration in VS Code
    status: unclear
    t: 378
    verified: false
    status_source: video
  - name: AL MCP for agents outside VS Code
    status: unclear
    t: 466
    verified: false
    status_source: video
objects_mentioned: []
quotes:
  - t: 17
    text: In this release, we have added the ability to run tests in Visual Studio Code.
    check: exact
  - t: 35
    text: Part of this is a set of run profiles. There is the profile for publishing and running your tests.
    check: exact
  - t: 196
    text: But now, from VS Code, it's like really, really easy to set up a run and debug.
    check: exact
  - t: 277
    text: the good thing about having integrated with the VS Code tools is that we get the ability for agents to run tests out of
    check: exact
  - t: 337
    text: we are not using AL test runners. This means that we currently do not have any support for running AI or data-driven test suites.
    check: exact
  - t: 366
    text: we actually configure this dynamically based on the required test isolation property that's set on the test code unit.
    check: exact
  - t: 378
    text: you can disable the test integration in VS Code using the AL disable test running setting.
    check: exact
  - t: 404
    text: giving the agent the ability to run and validate its own AL test own AL code using tests um significantly improves the accuracy of
    check: exact
  - t: 466
    text: we will have a bit on the AL MCP. And this is a tool for those of you who are not using VS Code
    check: exact
---

# What's New: Running Tests from Visual Studio Code (2026 release wave 1)

> Running AL tests from Visual Studio Code in the 2026 release wave 1: test explorer, run profiles, code lens, debugging, code coverage and Copilot agent test fixing. It also covers limits: no AI or data-driven test suites, because AL test runners are not used.

[Watch on YouTube](https://www.youtube.com/watch?v=Rvgt_VXFr1I) · Microsoft Dynamics 365 Business Central (YouTube) · 2026-04-01 · 8:27 · tier official · reviewed (checked by Opus)

## Overview

The video shows the added ability to run tests in Visual Studio Code. A testing explorer lists tests grouped by project and codeunit with pass/fail status. Run profiles cover publish and run, run only, debug, and run with code coverage. Code lens shows how many tests have executed a procedure and lets you run the associated tests from the code. Debugging a test sets up the debug session automatically and can be started from the test explorer, the test sidebar, or test results.

It also covers a Copilot agent that can run tests, find failing ones and fix the test code, with several runs to validate the fixes. The technical section explains that the framework uses launch.json, configures test isolation dynamically, and does not use AL test runners. The AL MCP tool, covered in a separate session, serves agentic tools outside VS Code.

## Key points

- Tests run directly in VS Code, with a testing explorer grouping tests by project and codeunit and showing pass/fail status; this uses only platform parts, with no extra application added.
- Run profiles: publish and run in one operation, run only, debug, and run with code coverage collection.
- After a code coverage run, code lens shows how many tests executed a procedure and how many passed, and clicking it runs those tests.
- Debugging can start from the test explorer, the test sidebar, or test results ('debug failed test'), and the debug session is set up automatically.
- Copilot agents can run tests out of the box once the run test tool is enabled; in the demo the agent fixed the bug and ran the tests again to validate the fix.
- The framework uses launch.json, so it can target multiple sandbox or on-prem servers and pick the test company through the startup company property.
- AL test runners are not used, so AI and data-driven test suites are not supported, and codeunits relying on test runner setup and teardown events may not work.

## Chapters

- [0:00](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=0s) Overview of Testing Capabilities
- [1:18](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=78s) Testing Explorer and Code Coverage Demo
- [2:46](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=166s) Debug Tests in VS Code
- [4:14](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=254s) Copilot Agent for Test Fixing
- [5:01](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=301s) Technical Implementation Details
- [6:18](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=378s) Agentic Development Results
- [6:44](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=404s) Related Resources and Conclusion

## Features

| Feature | Status | At |
|---|---|---|
| Run tests in Visual Studio Code | status not stated, demoed | [0:17](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=17s) |
| Run profiles for tests | status not stated, demoed | [0:35](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=35s) |
| Code lens for test execution | status not stated, demoed | [2:08](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=128s) |
| Debug tests from VS Code | status not stated, demoed | [3:16](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=196s) |
| Copilot agent for test fixing | status not stated, demoed | [4:26](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=266s) |
| Test framework using launch.json configuration | status not stated | [5:01](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=301s) |
| No support for AI and data-driven test suites | status not stated | [5:37](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=337s) |
| Dynamic test isolation configuration | status not stated | [5:52](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=352s) |
| Disable test integration in VS Code | status not stated | [6:18](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=378s) |
| AL MCP for agents outside VS Code | status not stated | [7:46](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=466s) |

## Quotes

- [0:17](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=17s) "In this release, we have added the ability to run tests in Visual Studio Code."
- [0:35](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=35s) "Part of this is a set of run profiles. There is the profile for publishing and running your tests."
- [3:16](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=196s) "But now, from VS Code, it's like really, really easy to set up a run and debug."
- [4:37](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=277s) "the good thing about having integrated with the VS Code tools is that we get the ability for agents to run tests out of"
- [5:37](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=337s) "we are not using AL test runners. This means that we currently do not have any support for running AI or data-driven test suites."
- [6:06](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=366s) "we actually configure this dynamically based on the required test isolation property that's set on the test code unit."
- [6:18](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=378s) "you can disable the test integration in VS Code using the AL disable test running setting."
- [6:44](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=404s) "giving the agent the ability to run and validate its own AL test own AL code using tests um significantly improves the accuracy of"
- [7:46](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=466s) "we will have a bit on the AL MCP. And this is a tool for those of you who are not using VS Code"

## Disclaimers in the video

- [5:37](https://www.youtube.com/watch?v=Rvgt_VXFr1I&t=337s) not-in-this-release: we currently do not have any support for running AI or data-driven test suites

Presenters (as heard): Thomas, Thaddeus.
