Description
Describe the issue
When multiple tests methods are added to a test codeunit which is already published and added to a test suite, new test cases can land in another codeunit in the AL Test Tool page.
Expected behavior
Test methods must be shown under the codeunit which publishes these methods.
Steps to reproduce
- Create two test codeunits: "Test Codeunit 1" and "Test Codeunit 2", each with two test methods.
- Publish the test app and add the new codeunits to a test suite.
Image
- Add a few more test methods to the codeunit 1 (I did 5 more - "TestF" through "TestJ"). Publish the app.
- Select Codeunit 1 in the test suite and push "Update Test Methods".
Result: Test F is added under Codeunit 1, whilst all other methods sit under the Codeunit 2, although all methods are published by codeunit 1.
If I now press "Update Test Methods" on the Codeunit 1 again, it fails:
Additional context
No response
I will provide a fix for a bug
- I will provide a fix for a bug