Skip to content

Add support for running tests and main#74

Open
Detrous wants to merge 5 commits intozed-extensions:mainfrom
Detrous:add-runnable-targets
Open

Add support for running tests and main#74
Detrous wants to merge 5 commits intozed-extensions:mainfrom
Detrous:add-runnable-targets

Conversation

@Detrous
Copy link
Copy Markdown

@Detrous Detrous commented Feb 17, 2026

  • Add runnables.scm with queries to detect test methods, test classes, nested test classes and main functions
  • Add tasks.json with commands to run tests/main via Gradle/Maven

Nuances

  • Handles Kotlin backtick-escaped method names (e.g. should return true) by stripping backticks for the test filter
  • Detects Gradle multi-module subprojects via cut on the relative file path, running :module:test instead of test to avoid "No tests found" failures when --tests filter applies to all subprojects

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 17, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @Detrous on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@Detrous
Copy link
Copy Markdown
Author

Detrous commented Feb 17, 2026

@cla-bot check

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 17, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @Detrous on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 17, 2026

The cla-bot has been summoned, and re-checked this pull request!

@Detrous
Copy link
Copy Markdown
Author

Detrous commented Feb 17, 2026

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Feb 17, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 17, 2026

The cla-bot has been summoned, and re-checked this pull request!

Copy link
Copy Markdown
Contributor

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

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

Thanks for this! Could you look into the CI failure, please?

@Detrous Detrous requested a review from MrSubidubi March 27, 2026 09:58
@Detrous
Copy link
Copy Markdown
Author

Detrous commented Mar 27, 2026

runnables.scm formatted, could you please run CI again ?

@Detrous
Copy link
Copy Markdown
Author

Detrous commented Mar 31, 2026

@MrSubidubi do you want me to adjust anything else or it can be merged ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants