Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    tomyt
    @tomyt
    This message was deleted
    5 replies
    tomyt
    @tomyt
    Sorry, I deleted the thread by mistake and don't know how to recovery it. So I created a new one.
    8 replies
    JDR
    @ctjdr
    Hi, first thanks for improving Java support in VS Code constantly. One thing I am missing in the Java Test Explorer is a prominent indicator for the result of the last test run just like a green or red bar somewhere in the IDE as I get it in Eclipse, eg. Especially when I re-run a test I often don't have the test class open, but the test subject class. The only visual indication I get without opening the test class are those small check marks in the test explorer. A failing test may be hidden there, requiring further action to find out if any test failed. Or could this be a matter of the theme one is using and I am missing a prominent color indicator somewhere?
    Sheng Chen
    @jdneo
    image.png
    @ctjdr Will this option help your case?
    JDR
    @ctjdr
    @jdneo This is a good idea and I will definitely make this my default, thanks! I still would appreciate a more eye-catching indicator that awards test-driven development with something like a green bar on success, also. I just like to see switching from red to green literally. Anyway, I appreciate all the work you put into the product and understand that other things might be more important or better fit into the product vision. Btw, would it be possible to hook into the Java test runner with a new extension that acts upon test results?
    Sheng Chen
    @jdneo
    You can also file an issue about the UX requirement. The actual UX is controlled by VS Code actually. But if more and more users ask for the similar things, we can try to ask VS Code team to consider it.
    I'm afraid there is no way to hook into the Java Test Runner now. That at least need test runner to expose a set of APIs for other extensions to consume those test items.
    1 reply
    Donglun He
    @DonglunHe
    Hi All, I bumped into this bug when I try run a test, it hangs at "Run Tests: Resolving launch configuration..." "Source: Debugger for Java" indefinitely and cannot complete the test run whatsoever. What could've been the problem here?
    Screen Shot 2022-05-06 at 10.05.17 PM.png
    4 replies
    mousavi-lg
    @mousavi-lg
    Hi
    I have a stable and fast network but for downloading Test runner for java extension and language support for java, they have been downloading for an hour and still they have remained. if there is a problem what can I do? could anyone give me help?
    1 reply
    PratikBhowmik
    @PratikBhowmik
    Hello there,
    I have a query I am using gradle build tool for my project and I have been scripting selenium java code in the src-test-java and I am also exploring testing my scripts by the help of @Test annotation but I am not able to see any test report on the right hand side like how many passed and how many failed do you know why or what's the reason for this ? It would be better if someone help
    PratikBhowmik
    @PratikBhowmik
    In simple words I am talking about the report where we can see stacktraces and all the pass fail stuffs
    image.png
    This one -
    Sheng Chen
    @jdneo
    @PratikBhowmik Can you see those tests in the test explorer? And what's your test runner's version installed?
    5 replies
    Brian J. Murrell
    @brianjmurrell
    For a java project I am trying to get running, gradlew test works fine but I don't have any of the "green arrows" that https://code.visualstudio.com/docs/java/java-testing#_rundebug-test-cases demonstrates. Any ideas why? My project is at https://github.com/brianjmurrell/jenkins-shared-library-example/tree/updates.
    1 reply
    Brian J. Murrell
    @shred000:matrix.org
    [m]
    Ahhh. I noticed in the video at the first link above that there is supposed to be an "Enable Java Tests" button in the "beaker" extension, but I don't seem to have that.
    Ahh. But I see that's only for projects without build tools. Mine is using Gradle.
    Sheng Chen
    @jdneo

    Ahh. But I see that's only for projects without build tools. Mine is using Gradle.

    Yes, since adding testing framework without the help of build tools is complex, so that feature currently is mainly for unmanaged folders.

    Brian J. Murrell
    @shred000:matrix.org
    [m]
    Right. Just doesn't explain why my project is not supplying the gutter test run triangles.
    Sheng Chen
    @jdneo
    Yes, sorry Groovy is not supported for now
    a-st
    @a-st:matrix.org
    [m]
    Hello everyone. I'm running latest vscodium with latest vscode-java(-test) and it looks like the process is stuck at "Running tests..."
    The test class is a very basic JUnit 5 test
    Sheng Chen
    @jdneo
    @a-st:matrix.org Could you list the version for the java related extensions? the redhat.java, java debugger and java test runner
    15 replies
    a-st
    @a-st:matrix.org
    [m]
    Fun fact: I uninstalled ms-kubernetes-tools.vscode-kubernetes-tools and pivotal.vscode-spring-boot and now the tests are working again
    1 reply
    Kropie
    @Kropie
    @jdneo - are there any outstanding issues that I could help out with for this extension? Or is there anything else I could do to help?
    Sheng Chen
    @jdneo

    Hi @Kropie, thank you for being willing for contribution. You can take a look at these ones if you are interested :)

    microsoft/vscode-java-test#1465
    microsoft/vscode-java-test#1472

    24 replies
    Kropie
    @Kropie
    @jdneo just letting you know that I've got the PR out to fix #1517.