Test handlers
Test handlers
Test handlers provide setup and tear down in AL, with hooks before and after the test codeunit, test procedure and each data-driven test case. The demo uses a logger handler that traces while tests run.
Area: Developer tools. Status: GA. Developer relevance: high. Airtime: 3 min across 2 videos, demoed.
Status evidence
- Nothing said about status; launch event convention: generally available unless stated otherwise.
Where they talk about it
- What's new in AL and Tools: 23:29 to 24:55, demo at 23:49 (called "Test handlers (test lifecycle hooks)" there)
- What's new: Testability Enhancements: 4:21 to 5:26
Quotes
- 4:48 "but we sort of lost that when we moved to the platform test runners." - Explains why test handlers were brought back.
- 5:26 "default test handlers uh or I like to think of them as global test handlers because they run on every single um test" - Describes the design of default handlers, which run on every test.
Caveats mentioned
- Separate from the test toolkit events driven by AL test runners
Prerequisites mentioned
- Handler implementing the test handler interface/enum implementation
Documented features match
- Build extensible and data-driven AL test suites - high confidence (llm). Docs say: General availability, roadmap id 573333. Lifecycle handlers for setup and cleanup
Docs checked on 2026-10-02: the match is against Microsoft's what's new pages for the wave as they were on that date. Microsoft keeps filling the documentation, so "no documented item" can go stale. The wider product documentation on learn.microsoft.com was searched for this feature on the same date; the feature's data lists an article when one was found.
Tags: al, testing, test-handlers, interfaces, setup
Generated by pipeline step 06. Source: YouTube auto-captions of the launch event videos, see the deep links. Not official.