petrovic-d commented on code in PR #7979:
URL: https://github.com/apache/netbeans/pull/7979#discussion_r1872998151


##########
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/progress/TestProgressHandler.java:
##########
@@ -154,7 +155,14 @@ private String statusToState(Status status) {
     private static ModuleInfo getModuleInfo(TestSession session) {
         Project project = session.getProject();
         String moduleName = project != null ? 
ProjectUtils.getInformation(project).getDisplayName() : null;
-        String modulePath = project != null ? 
project.getProjectDirectory().getPath() : null;
+        String modulePath = getModuleTestPath(project);
         return new ModuleInfo(moduleName, modulePath);
     }
+    
+    private static String getModuleTestPath(Project project) {
+        if (project == null) {
+            return null;
+        }
+        return Paths.get(project.getProjectDirectory().getPath(), "src", 
"test", "java").toString();

Review Comment:
   @lahodaj This is not visible in the UI. The purpose of it is to run tests 
for a single module (at least that's the idea). This way we know the path to 
the module tests on the client side. It's a bit coupled to this 
[PR](https://github.com/apache/netbeans/pull/8021) which fixes single test runs



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to