Extension doesn’t play well with `@ParameterizedClass`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java, typescript, vscode
- Lĩnh vực
- developer-experience, testing-qa
Hướng nghiên cứu
Bắt đầu bằng cách chạy bản tái hiện @ParameterizedClass lồng nhau được cung cấp thông qua Test Explorer và hành động Run Test inline, sau đó theo dõi việc xử lý kết quả của extension cho các điểm vào đó. Hoàn tất khi mỗi lần thực thi được tham số hóa đều xuất hiện ở trạng thái đạt hoặc không đạt, bao gồm cả các lần thất bại, đồng thời các @ParameterizedTest hiện có và các test lồng nhau vẫn hoạt động chính xác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When using JUnit 5’s @ParameterizedClass, tests are executed but the Java Unit Test extension in VS Code always reports them as "No Result", regardless of whether they pass or fail.
The same tests report results correctly when run via Gradle or in other IDEs.
Environment
VS Code version: 1.107.1
Java Unit Test extension version: 0.43.2
Java version: 21
Build tool: Gradle
JUnit version: 5.14.1
OS: Windows
Reproduction Steps
- Create a JUnit 5 test using
@ParameterizedClass - Open the project in VS Code
- Run the test using the Test Explorer or inline Run Test action
Minimal Reproducible Example
@Nested
@ParameterizedClass
@ValueSource(strings = { " hello ", "\tWorld\n", "JUnit " })
class GivenUntrimmedString {
@Parameter
String input;
@Nested
class WhenNormalizing {
String normalized;
@BeforeEach
void act() {
normalized = input.trim().toLowerCase();
}
@Test
void thenLeadingWhitespaceIsRemoved() {
assertFalse(normalized.startsWith(" "));
}
@Test
void thenTrailingWhitespaceIsRemoved() {
assertFalse(normalized.endsWith(" "));
}
@Test
void thenStringIsLowercased() {
assertEquals(normalized, normalized.toLowerCase());
}
}
}
Expected Behavior
- Tests are executed once per parameter value
- Each execution reports a pass or fail
- Test Explorer shows the correct result status
Actual Behavior
- Tests are executed (side effects and logs confirm execution)
- Test Explorer shows "No Result" for the tests
- Status does not change even if assertions fail
Additional Notes
- This behavior appears specific to
@ParameterizedClass @ParameterizedTestworks correctly- Nested tests without parameterized classes work correctly
- Command-line execution via Gradle reports results correctly
- Ngôn ngữ chính
- TypeScript
- Star
- 340
- Fork
- 173
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/vscode-java-test
-
CodeLens missing and individual method execution freezes on @Nested JUnit 6 classes (macOS)Có thể đã có người làm @wenytang-ms đã nhận 5 ngày trước. Đang mởai-triaged bug investigating junit test-discovery test-execution
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
microsoft/vscode-java-test#1897 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] The extension uses raw data.Có thể làm lại được @wenytang-ms đã nhận 89 ngày trước và không có pull request nào đang mở. Đang mởai-triaged bug gradle high-priority test-execution
microsoft/vscode-java-test#1880 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] IllegalAccessException: module java.base does not open java.lang to unnamed moduleCó thể làm lại được @wenytang-ms đã nhận 89 ngày trước và không có pull request nào đang mở. Đang mởai-triaged gradle junit test-execution ux
microsoft/vscode-java-test#1878 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-triaged enhancement junit low-priority test-execution ui
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoft/vscode-java-test#1836 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
java.lang.IllegalArgumentException: Error: test loader org.eclipse.jdt.internal.junit5.runner.JUnit5TestLoader not foundCó thể làm lại được @wenytang-ms đã nhận 211 ngày trước và không có pull request nào đang mở. Đang mởai-triaged bug gradle high-priority junit test-execution
microsoft/vscode-java-test#1816 · 11 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/vscode-java-test
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
MystenLabs/MemWal#1085 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
📕documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
db-ux-design-system/core-web#8343 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement triage/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
heygen-com/hyperframes#4944 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Pressing Escape to close the time dropdown in the event form asks to discard the whole eventĐang mởai-driven-qa bug claude
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
linagora/twake-calendar-frontend#1493 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày