Skip to content

Uptake requireTestIsolation to replace TestGroups.json - #4165

Merged
Sun Haoran (haoranpb) merged 4 commits into
mainfrom
private/haoransun/bcapp-uptake-requestTestIsolation
Jul 17, 2025
Merged

Sun Haoran (haoranpb) merged 4 commits into
mainfrom
private/haoransun/bcapp-uptake-requestTestIsolation

Conversation

@haoranpb

@haoranpb Sun Haoran (haoranpb) commented Jul 16, 2025 •

Copy link
Copy Markdown
Contributor

Summary

Replace System Application Tests (No Isolation) project with the latest RequireTestIsolation property. Couldn't figure out how to run Run-TestsInBcContainer twice, it is failing build...

Replace TestGroups.json with the latest RequireTestIsolation property. This is a follow up for #4137 .

The change simplifies the build script, removing the need to maintain the TestGroups.json.

Work Item(s)

Fixes AB#581153

@haoranpb
Sun Haoran (haoranpb) requested review from a team as code owners July 16, 2025 11:28
@github-actions github-actions Bot added AL: System Application Build: scripts & configs Build scripts and configuration files labels Jul 16, 2025
@github-actions github-actions Bot modified the milestone: Version 27.0 Jul 16, 2025
@haoranpb Sun Haoran (haoranpb) changed the title Uptake requireTestIsolation to replace System Application Tests (No Isolation) project Uptake requireTestIsolation to replace TestGroups.json Jul 17, 2025
@haoranpb
Sun Haoran (haoranpb) enabled auto-merge (squash) July 17, 2025 13:17
@haoranpb
Sun Haoran (haoranpb) merged commit fbecb06 into main Jul 17, 2025
@haoranpb
Sun Haoran (haoranpb) deleted the private/haoransun/bcapp-uptake-requestTestIsolation branch July 17, 2025 13:23
Sun Haoran (haoranpb) added a commit that referenced this pull request Jul 21, 2025
#### Summary <!-- Provide a general summary of your changes -->

Follow up on #4165 , managed to get rid of `System Application Tests (No
Isolation)`. The trick is to set `renewClientContextBetweenTests` flag
when calling `Run-Tests..` twice in a roll.

It might make build tasks slightly longer, but save us from building
System App twice to run tests that take less than a second.

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#592504](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/592504)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: System Application Build: scripts & configs Build scripts and configuration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants