Repository navigation
Java Test Runner
At full merged/push-after/source-tip commit 22a9fcb24f1ab68cc2b4bc5b8268cbd5375a3ed0, microsoft/vscode-java-test PR #1961 changes the TypeScript JUnit result analyzer so a JUnit 4 runner's labeled run of one triggered method is not dropped when no enclosing suite places it.
- After ordinary ID lookup and incomplete-suite placement fail,
JUnitRunnerResultAnalyzer.enlistLabeledMethodRunToTestMappinghandles onlyTestKind.JUnitIDs whose method portion has a[label. It removes the label to find the triggered method, requires that parent to be a method-level test item, and creates or updates an invocation beneath it through the existing dynamic-method mapping path. This maps results such asshouldPass[config]to an invocation of the requestedshouldPassmethod. - Suite placement still takes precedence. In particular, labeled
Parameterizedruns already assigned beneath suites such as[0]are left in those suites rather than remapped under the triggered method. - Source tests assert both the previously dropped labeled single-method result and the unchanged parameterized-suite path. These are source-verified assertions, not an independently observed passing test run, release, or deployment.
The complete two-file manifest matched the PR changed-file count; implementation and tests were compared with parent b16ac1151bb59dad6e8c467467d4db406f935193, and PR metadata was rechecked after manifest paging. Source identity: microsoft/vscode-java-test#1961:22a9fcb24f1ab68cc2b4bc5b8268cbd5375a3ed0.
-
src/runners/junitRunner/JUnitRunnerResultAnalyzer.ts,enlistToTestMappingandenlistLabeledMethodRunToTestMapping. -
test/suite/JUnitAnalyzer.test.ts, labeled single-method and parameterized-suite regression cases.
These details concern the integration-test harness in microsoft/vscode-java-test, not settings imposed on users' test projects.
-
Dedicated VS Code user data:
test/index.ts::maincreates.vscode-test/user-data/Userunder the repository and writessettings.jsonbefore its tworunTestscalls. Both the Maven/JUnit workspace suite and unmanaged-folder suite receive the same directory through--user-data-dir; this is a shared test profile, not a fresh profile per suite. [1] -
AI features disabled for test launches: that settings file sets
chat.disableAIFeaturestotrue. Both launches also pass--disable-extensionforGitHub.copilot-chatandTypeScriptTeam.jsts-chat-features. [1] -
Explicit language-server Java selection: when
JAVA_HOMEis nonempty, the generated settings includejava.jdt.ls.java.homewith that value. The Linux, Windows, and macOS CI jobs install Temurin JDK 25 (replacing 21). This records the CI runtime choice, not a minimum Java target for users' projects. [1][2] -
Failure-log location: all three CI jobs collect JDT language-server logs from
.vscode-test/user-data/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.logon failure, rather than the normal OS-specific VS Code user-data location. Use the test-profile path when investigating these integration runs. [2] -
Deterministic Maven fixture naming: the generated integration-test settings set
java.import.maven.projectNameTemplateto[artifactId]. This stabilizes the Maven/JUnit workspace fixture's imported name for the harness; it is not a Test Runner setting imposed on user workspaces. [17] -
Coverage-plugin validation:
CoverageHandlerTest.testGetCoverageDetailuses the singleIProjectreturned byimportProjects("coverage-test")rather than looking up a workspace project by the fixture-folder name. It requires one imported Java project and nonempty coverage before retaining the positive line/method-number checks. The accompanying Maven fixture uses JUnit Jupiter 5.8.2 and JUnit Platform Suite 1.8.2. These are test assertions and fixture configuration, not production coverage behavior or an independently observed passing run. [18][19]
Verified against merged source commit 7e2584d2d44804999c3d06a2605e9352782d7e6b in PR #1937. Both changed files were inspected; their main file blobs matched the merged revision at maintenance time. This documents harness configuration, not a verified successful CI run or a release/deployment claim.
-
test/index.ts,mainand bothrunTestscalls. -
.github/workflows/build.yml,linux,windows, anddarwinjobs.
The Maven fixture and coverage-test details were verified at full merged/push-after/source-tip commit 0c87b52069fbca6a8e964ce5e9fd8891bd639ec0, PR #1957, source identity microsoft/vscode-java-test#1957:0c87b52069fbca6a8e964ce5e9fd8891bd639ec0. The complete three-file manifest matched the PR changed-file count; all files were compared with base 7593c52d52d1af33b5edea5a2a396d6dda8a33f5, and PR metadata was rechecked after paging. This establishes final source configuration and assertions, not CI success, release, or deployment.
-
test/index.ts, generated integration-test settings. -
CoverageHandlerTest.java,testGetCoverageDetail. -
test/test-projects/junit/pom.xml, JUnit fixture dependencies.
The current source dispatcher configuration is verified at full merged/source-tip commit 62b489a998fbafc23cd5721deb60b7c91fb632ca, microsoft/vscode-java-test PR #1956. Its complete two-file manifest matched the PR changed-file count, both workflows were compared with parent 0c87b52069fbca6a8e964ce5e9fd8891bd639ec0, and PR metadata was rechecked after paging. This is repository automation, not Java test execution behavior. [9]
-
Dispatch authentication:
jobs.team-memoryusesactions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1(annotated v3.2.0), referencingvars.ISSUELENS_DISPATCH_APP_CLIENT_IDandsecrets.ISSUELENS_DISPATCH_APP_PRIVATE_KEY. The requested scope is ownermicrosoft, repositoryvscode-java-pack, Contents read and Actions write. The queue step receivessteps.dispatch-token.outputs.token, notgithub.token; workflow-levelpermissions: {}remains. [9] -
Caller guards and context:
Queue IssueLens Team Memorytriggers on pushes tomain. The job requiresISSUELENS_TEAM_MEMORY_ENABLED == 'true', canonical repositorymicrosoft/vscode-java-test, the default-branch ref,github.ref_protected, a push event,github.workflow_sha == github.sha, and falsecreated,deleted, andforcedflags. It usesubuntu-latestand a 10-minute timeout. Concurrency includes the source repository and eventafter(or run ID), withcancel-in-progress: false; this is not a cross-repository wiki lock. [9] -
Coordinator boundary: the queue step pins
microsoft/IssueLens/.github/actions/queue-team-memory@61a9e9a5ff2f9514a3bdd351a0721235cd0a2813, targetingmicrosoft/vscode-java-pack, workflowteam-memory-coordinator.yml, refmain. Its five string inputs aresource_repository,source_run_id,source_run_attempt,push_before(eventbefore), andpush_after(github.sha). This source workflow has noworkflow_dispatch, checkout, or direct agent invocation. See Java Pack for the separately documented coordinator recovery entry point; its implementation was not revalidated here. [9] - Operational evidence limit: the workflow references establish configured guards, credential dependencies, requested permissions, and action revision, not secret values, App installation/access, successful token minting, dispatch, external action behavior, or wiki publication. [9]
The prior PR #1936 description is superseded as current operation: it described direct issuelens invocation and source-local manual PR dispatch at 84fa601956f106db9c63c753c11a48acdaca91d5. Historical provenance is retained below; do not use that old workflow as the current recovery route. [3][9]
- Historical
.github/workflows/team-memory-post-merge.yml, triggers, concurrency, andjobs.team-memory, PR #1936. - Historical
.github/issuelens/team-memory.md, Maintenance and provenance. -
microsoft/vscode-java-test/.github/workflows/team-memory-post-merge.yml,on,permissions,concurrency, andjobs.team-memory, full source commit62b489a998fbafc23cd5721deb60b7c91fb632ca; PR #1956, source identitymicrosoft/vscode-java-test#1956:62b489a998fbafc23cd5721deb60b7c91fb632ca.
Verified in microsoft/vscode-java-test at cff6fdb4b5e3221a4e88473d2f90e1fd58f1061c, merged PR #1938, related to issue #1692. All nine changed files were inspected and matched their PR-head blobs at this merge, also the supplied push-after and source-tip revision. At that revision the changelog placed the fix under Unreleased. Release-preparation PR #1945 subsequently lists it under 0.47.0 at 4ad2329340000a9e94251cbed1e4fadfbc97d62e; neither observation establishes publication or deployment. [5][8][10]
-
Owning layer and trigger: the Test Runner's JDTLS plugin handles this in
TestSearchUtils, not in the VS Code client or target-JVM runner.requiresPreviewFallbackchecks that the JDT project preview option is enabled and its source level differs fromJavaCore.latestSupportedJavaVersion(). A cached discovery AST reportingIProblem.PreviewFeaturesNotAllowedis bypassed. The discovery parser copies project compiler options, disables preview only in that copy, resolves bindings, and ignores method bodies. The public non-discoveryparseToAstpath retains its normal behavior. [5] -
Discovery coverage: file discovery examines all top-level types rather than only the primary type, including sibling test classes and non-class declarations via
AbstractTypeDeclaration. For JUnit 5 and 6, project discovery supplements the normal search with compilation-unit discovery in test source roots when fallback is required. Class expansion uses the discovered tree and JDT handle matching; nested-only parents are retained when their children contain tests. [5] -
Diagnostic boundary: when a top-level declaration or binding is unavailable under the fallback condition, discovery throws
CoreExceptionwithCannot discover tests in ...and either an AST error orJDT cannot resolve test bindings with the project's preview settings.This distinguishes that failure from a valid file with no tests; it is not a guarantee that every empty result is an error. [5] -
Compatibility limits: the fallback does not change project compiler settings or test launch arguments, and does not add JDT support for older preview syntax. Do not treat it as a Maven/Gradle import fix or as proof that changing Maven
compilerArgsenables JDT preview; that mapping was not verified by this change. [5]PR #1938 -
Regression coverage:
TestSearchUtilsTest.testDiscoverJUnit5TestsWithOlderPreviewSourcesets source/compliance to 17 and enables JDT preview, asserts the initial unsupported-preview problem and missing binding, then checks file discovery, sibling methods, a no-test helper, project discovery, nested expansion, and preservation of the project's preview option. Fixtures include enum, record, and annotation declarations alongside tests. The plugin exports itsutilpackage to the test bundle withx-friends. These are source-verified assertions, not a verified passing test run; the PR reports that local Tycho execution was blocked by missing Eclipse/JDT types. [6][7]PR #1938
-
TestSearchUtils.java, discovery entry points,parseToDiscoveryAst,requiresPreviewFallback, andthrowIfUnsupportedPreview. -
TestSearchUtilsTest.java,testDiscoverJUnit5TestsWithOlderPreviewSourceandprojects/preview-junitfixtures. -
META-INF/MANIFEST.MF,Export-Package. -
CHANGELOG.md, Unreleased.
At merged/source-tip commit 4ad2329340000a9e94251cbed1e4fadfbc97d62e, microsoft/vscode-java-test PR #1945 changes the extension manifest version from 0.46.0 to 0.47.0 and synchronizes the lockfile's top-level and root-package versions. Its lockfile patch changes only those two version fields, not dependency resolutions. The changelog replaces Unreleased with 0.47.0 notes collecting earlier output/reporting, discovery, module-opening, and runtime-dependency changes. Use that section as the release-note index, not as fresh implementation verification of each referenced PR. [10][11][12]
All three PR file patches were inspected and metadata remained unchanged after paging; the manifest and changelog were read at the merge SHA, and all three final file blob identities matched the PR inventory at that same supplied source tip. This is release preparation only: a source version and changelog heading do not establish a Marketplace publication, release tag, deployment, or successful validation run.
-
microsoft/vscode-java-test/CHANGELOG.md,0.47.0. -
microsoft/vscode-java-test/package.json,version. -
microsoft/vscode-java-test/package-lock.json,versionandpackages[""].version; complete version-only patch in PR #1945, source identitymicrosoft/vscode-java-test#1945:4ad2329340000a9e94251cbed1e4fadfbc97d62e. The lockfile exceeds the bounded whole-file read limit; its final blob identity was verified through the commit-pinned root tree.
At full merged/source-tip commit 62b489a998fbafc23cd5721deb60b7c91fb632ca, jobs.triage in .github/workflows/issuelens-run.yml pins microsoft/IssueLens/.github/actions/issuelens@61a9e9a5ff2f9514a3bdd351a0721235cd0a2813 with request-type: issue-loop and transport: bridge. It supplies bridge-url from secrets.ISSUELENS_BRIDGE_URL and selects the issue as inputs.issue_number || github.event.issue.number; the former Azure client, tenant, subscription, agent URL, and agent scope inputs are no longer present.
The job requires the canonical microsoft/vscode-java-test repository, the default-branch ref, and github.ref_protected; comment events additionally exclude pull requests and non-user senders/commenters. It has a 45-minute timeout and only issues: read plus id-token: write job permissions. This records configured repository issue-triage routing, not Java test execution, external action internals, secret values, a successful bridge run, or deployment.
Verified from the complete two-file manifest and before/after workflow reads for PR #1956, source identity microsoft/vscode-java-test#1956:62b489a998fbafc23cd5721deb60b7c91fb632ca; PR identities and changed-file count were rechecked after paging.
At full merged/source-tip revision c481e27d5660f7750c2292d68f95855e5093ccbf, PR #1948 removes the deprecated .github/workflows/triage-agent.yml and .github/workflows/triage-all-open-issues.yml. The first had handled newly opened or manually selected issues through an Azure Function; the second manually enumerated eligible open issues and dispatched the first workflow. Their removal does not remove the separate IssueLens issue-loop caller, which remains in the final .github/workflows directory.
The complete two-file PR inventory consists only of these deletions; both prior files and the final workflow directory were inspected, PR identities were rechecked after paging, and the final commit has parent 57351d8d660f73928e23211e4bfc9bc617c61dae. This establishes repository workflow configuration, not removal of stored secrets or external services, and not a successful replacement triage run. Source identity: microsoft/vscode-java-test#1948:c481e27d5660f7750c2292d68f95855e5093ccbf.
At full merged/source-tip commit c0945357100fb8d7195203790fe683fd664520de, PR #1952 configures extends.parameters.sdl.sourceAnalysisVariablesToReset with npm_config_registry in the Azure CI, nightly, and release-candidate templates. The build configuration still imports the repository-wide npm and Maven CFS variable templates, while SDL source analysis is configured to reset the npm registry variable instead of inheriting that build routing.
The complete three-file PR inventory matched the changed-file count; PR base, merge identity, and metadata were rechecked after paging, and all three files were compared before and at the merged revision. This records pipeline configuration only: no Guardian/feed-authentication execution, successful hosted run, release, or deployment was independently verified. Source identity: microsoft/vscode-java-test#1952:c0945357100fb8d7195203790fe683fd664520de.
Verified in microsoft/vscode-java-test at full merged/source-tip commit 7593c52d52d1af33b5edea5a2a396d6dda8a33f5, PR #1940. The complete 41-file manifest matched the PR changed-file count, PR identities were rechecked after paging, and the final source was inspected at the supplied push-after revision. [13][14][15][16]
-
Discovery ownership and inheritance rules: the JDTLS test plugin's
TestSearchUtilsadds inherited methods in both file/type discovery and direct class expansion. It walks superclass declarations up tojava.lang.Object, excludes private methods, and applies each configured framework searcher's test and override rules. More-specific declarations prevent duplicate inherited items according to those rules; notably, JUnit 4 retains an inherited annotated test across an unannotated override, while JUnit 5 suppresses it. [13][15] -
Child identity with parent declaration provenance: an inherited method item is rebased to the selected child class for
fullName, ID, project, URI, and the newexecutionClassName. Its JDT handle still identifies the declaring method, while its range is cleared so a parent source range is not attached to the child item. The TypeScript controller caches this execution-class field and sends it with launch resolution. [13][14] -
Launch boundary: JUnit launch resolution uses
executionClassNameas the main/execution type while resolving the method from its retained JDT handle. Method arguments are emitted asChildClass:method; parameter types use resolved erased bindings, including binary and generic parent methods. [14] - Regression evidence: source tests cover child-defined plus inherited methods, multi-level/override behavior for JUnit 4 and 5, cross-project and binary parents, generic parameter erasure, child-project identity, and launch arguments targeting the child class. These are source-verified assertions, not an independently observed passing test run or release/deployment claim. [15][16]
-
TestSearchUtils.java,findDirectTestChildrenForClass,findTestItemsInTypeBinding,addInheritedTestMethods, andrebaseMethodItemToChild. -
JavaTestItem.java,executionClassName,src/controller/utils.ts, test-item metadata,src/utils/launchUtils.ts,getExecutionClassNames, andJUnitLaunchConfigurationDelegate.java,resolveMethodTestName. -
TestSearchUtilsTest.java, inherited discovery and override tests. -
JUnitLaunchConfigurationDelegateTest.java, inherited source, binary, and generic launch tests; source identitymicrosoft/vscode-java-test#1940:7593c52d52d1af33b5edea5a2a396d6dda8a33f5.
At full merged/push-after/source-tip commit b16ac1151bb59dad6e8c467467d4db406f935193, PR #1939 adds opt-in discovery for tests located in imported Java source roots that are not normally classified as test roots, without reclassifying the build-tool source set. The java.test.additionalTestSourcePaths resource-scoped array defaults to empty. [20][21]
-
Path selection: each configured value is trimmed and interpreted relative to its workspace folder unless absolute. Literal paths and glob patterns select only source roots already returned by the JDTLS plugin's
vscode.java.test.get.sourcepathcommand; arbitrary or unimported directories are not scanned. Blank, unmatched, and negated patterns contribute no roots. Results are normalized and deduplicated, including case-insensitive keys on Windows. More than 100 matched roots produces an Output-channel warning rather than a hard limit. [20][21][22] -
Discovery boundary: the TypeScript client merges selected roots with ordinary test roots and marks them strict for source-path checks and Java-file watchers. During project expansion it passes the selected paths to
vscode.java.test.findTestPackagesAndTypes; the JDTLS plugin resolves only matching package-fragment roots and adds them to the normal test-root search. This changes Test Explorer discovery, not Maven or Gradle source-set classification. [21][22][23] -
Refresh behavior: changing
java.test.additionalTestSourcePathsor refreshing the Testing view clears both source-root caches, rebuilds Test Explorer state, disposes stale watchers, and creates watchers for the newly merged roots. Concurrent refresh requests are coalesced into a serialized loop so a request arriving during refresh is processed afterward. [22][24] - Validation scope: TypeScript tests cover default-empty behavior, literal/glob/absolute/Windows patterns, imported-root filtering, deduplication, cancellation/cache behavior, and watcher inclusion. Plugin tests verify that a main-source test is absent by default and present when its imported root is explicitly supplied, while the ordinary test-source test remains. These are source-verified assertions, not an independently observed passing test run, release, or deployment. [25][26]
The complete 25-file PR manifest matched changed_files; client configuration/provider/controller, JDTLS command/source-root/discovery paths, and relevant tests were inspected at the merged revision, whose parent is 62b489a998fbafc23cd5721deb60b7c91fb632ca. PR metadata was rechecked after manifest paging. Source identity: microsoft/vscode-java-test#1939:b16ac1151bb59dad6e8c467467d4db406f935193.
-
package.json,java.test.additionalTestSourcePaths. -
src/provider/testSourceProvider.ts,getAdditionalTestSourcePaths,resolveAdditionalTestSourcePaths, andmergeTestSourcePaths. -
ProjectTestUtils.java,listSourcePathsand selected-root resolution andTestDelegateCommandHandler.java, source-path delegate command. -
TestSearchUtils.java,findTestPackagesAndTypesandgetAdditionalSourceRoots. -
src/controller/testController.ts,refreshTestSourcePaths, project expansion, and watcher rebuild andsrc/extension.ts, configuration-change listener. -
test/suite/testSourceProvider.test.ts, additional-source provider tests. -
TestSearchUtilsTest.java,testAdditionalSourcePathsDiscoveryAndNavigation.