microsoft / microsoft/vscode-java-test

Test Explorer not listing Cucumber-JVM tests

Open
#1,731 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Repro:

  1. Create Java project
  2. Maven
  3. Cucumber.io archetype (7.11.1)
  4. everything default

Installed plugins (EVERYTHING else disabled):
image
Test runner for java version: v0.42.0
Also tried v0.42.2024080609 (pre-release)

image

Issue:
Code_UTVjD9wqWE

  • Test explorer shows no tests.
  • Clicking run briefly shows 0/1 tests passed
  • Then switches to 0/0 tests

Generated project:
demo.zip

Using Maven to create a normal JUnit5 test seems to work fine, this only appears to affect cucumber tests

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 unpacking demo.zip and reproducing the generated Maven Cucumber-JVM project with the Java Test Runner in VS Code. Compare its behavior with the working Maven JUnit 5 test and inspect how the Test Explorer discovers and runs each case. Done means the Cucumber tests appear in Test Explorer and running them reports the correct test count and result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.