Skip to content

Fixed GitHub issue 4039: Incorrect update of test methods in data-dri… #4164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adrogin
Copy link

@adrogin adrogin commented Jul 16, 2025

Resolves #4039
PR #2831 fixed the issue for test codeunits not linked to any data input group, since the "Expand Data-Driven Tests" subscriber now does not get bound if the data input group in the test line is empty. Still the bug persists in data-driven tests.

Same repro steps as reported in #4039 can be followed, but the Codeunit 1, which is being updated, must have a data input group assigned. When running the "Update Test Methods" action on a data-driven test, test methods end up landing under the wrong codeunit name in the test tool page.

image

This can be fixed by reconciling the line numbering in the data-driven tests with the "Test Runner - Get Methods" codeunit which triggers the event, through an additional even parameter.

@adrogin adrogin requested a review from a team as a code owner July 16, 2025 09:26
@github-actions github-actions bot added AL: Tools From Fork Pull request is coming from a fork labels Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AL: Tools From Fork Pull request is coming from a fork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Test methods added under a wrong codeunit in the AL Test Tool page
1 participant