Skip to content

Testclassinclude#18

Merged
larshp merged 3 commits intoabaplint:mainfrom
MagPasulke:testclassinclude
Feb 25, 2026
Merged

Testclassinclude#18
larshp merged 3 commits intoabaplint:mainfrom
MagPasulke:testclassinclude

Conversation

@MagPasulke
Copy link
Contributor

@MagPasulke MagPasulke commented Feb 15, 2026

added option to create testclass include when creating CLAS artifact. After class was created, user is asked whether he wants to add an include for testclasses.

  • based on user QuickPick Dialog ( yes | no )
  • named: <>.testclasses.abap

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 an interactive option when generating an abapGit CLAS artifact to also generate a corresponding test include file.

Changes:

  • Adjusts formatting for several VS Code API calls in create.ts.
  • Prompts the user during CLAS creation to optionally create a test include.
  • Creates a .testclasses.abap include file when the user confirms.

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

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

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


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

Comment on lines 144 to +148
await createFile(dir, uriABAP, dataABAP);

const createTestClass = await vscode.window.showQuickPick(
[{ label: "yes" },
{ label: "no" }],
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

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

The new “Add test class include?” prompt runs unconditionally after createFile(dir, uriABAP, ...). If the class files already exist, createFile returns early (after showing an error) and the user will still be prompted and may create a .testclasses.abap include even though the class wasn’t actually created in this run. Consider having createFile return a boolean (created vs. skipped) and only showing the QuickPick (and/or creating the include) when the class creation succeeded.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd like to avoid changing the interface of createFile for this PR

@MagPasulke
Copy link
Contributor Author

@larshp after class was created, user will be asked whether test class include should be added. Fixed choice yes | no:

image

any thoughts?

@larshp
Copy link
Member

larshp commented Feb 18, 2026

looks nice

I'm out of town this week, so will get back to this PR, remind me if I forget 😅

@larshp
Copy link
Member

larshp commented Feb 25, 2026

thanks

@larshp larshp merged commit 0d2b382 into abaplint:main Feb 25, 2026
6 of 7 checks passed
@larshp
Copy link
Member

larshp commented Feb 25, 2026

published as 0.0.27

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.

3 participants