microsoft / microsoft/vscode-java-test

enhancement: syncronization with maven

Open
#1,470 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged enhancement maven test-discovery
Dominant language
TypeScript
Stars
340
Forks
173
Avg merge
1d 19h
Merged PRs (30d)
18

Description

The use case for me is that essentially I run my testcases in maven
with surefire plugin.
Only if something goes wrong I switch to the test runner to analyze the details.
Then I switch back.

Currently, I have to configure both, the test runner in settings, and maven in the pom.
It would be some help if I could use the variables available in maven pom.
At least the ones available for maven projects,
better in addition those defined in the properties section in the pom.
Even better if I just can use the config of the surefire plugin.

Even helpful it would be if the settings in both worlds are comparable.
So I miss a way to include and exclude tests in test runner as provided by the surefire plugin.

Concrete suggestion: setting to syncronize with surefire

"java.test.conig": {
  "syncSurefire": "true" % with default false
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the test runner settings, the Maven pom, and the Surefire plugin configuration described in the issue. Define how synchronization should handle Maven project variables, pom properties, and Surefire include/exclude settings; done means the proposed sync setting produces comparable test-runner behavior without duplicate configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.