Skip to content

CLAS: set WITH_UNIT_TESTS flag#21

Merged
larshp merged 1 commit intomainfrom
hvam/xmlflag1303
Mar 14, 2026
Merged

CLAS: set WITH_UNIT_TESTS flag#21
larshp merged 1 commit intomainfrom
hvam/xmlflag1303

Conversation

@larshp
Copy link
Member

@larshp larshp commented Mar 13, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for toggling the abapGit WITH_UNIT_TESTS flag in generated CLAS XML, and verifies the behavior via the web extension test suite.

Changes:

  • Refactors CLAS XML generation into a new exported helper (buildClasXml) and conditionally injects <WITH_UNIT_TESTS>X</WITH_UNIT_TESTS>.
  • Updates CLAS creation flow to ask whether to include unit tests before generating the XML, and reuses the flag for creating the .testclasses include.
  • Adds web extension tests covering presence/absence of the WITH_UNIT_TESTS element.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/web/create.ts Extracts CLAS XML generation into buildClasXml and conditionally emits WITH_UNIT_TESTS, driven by a QuickPick choice.
src/web/test/suite/extension.test.ts Adds tests asserting the generated CLAS XML includes/omits WITH_UNIT_TESTS based on the flag.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@larshp larshp merged commit e2f36ee into main Mar 14, 2026
5 checks passed
@larshp larshp deleted the hvam/xmlflag1303 branch March 14, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants