Strongly typed test context
Strongly typed test context
The data source returns an ITestContext, but the test can use its own interface for typed test data.
Area: Developer tools. Status: GA. Developer relevance: high. Airtime: 0 min across 1 video, demoed.
Status evidence
- Nothing said about status; launch event convention: generally available unless stated otherwise.
Where they talk about it
- What's new: Testability Enhancements: 3:01 to 3:28, demo at 3:01
Quotes
- 3:28 "right now this reads from the resource file but it could equally be reading from an AL table or your web service" - Shows the data source is open-ended, not tied to resource files.
Documented features match
- Build extensible and data-driven AL test suites - medium confidence (llm). Docs say: General availability, roadmap id 573333. Data-driven tests
- Product documentation: Create test codeunits and test methods, checked 2026-10-02. The parameter type must be interface ITestContext or an interface that extends it. Note: Section marked 'APPLIES TO: Business Central 2026 release wave 2 and later'; preview with prerelease runtime 18. See also TestDataSource attribute page.
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.
Tags: testing, al, interfaces
Generated by pipeline step 06. Source: YouTube auto-captions of the launch event videos, see the deep links. Not official.