When I remove the findOneById nested class, the parent test class still gets the initialization error. Any idea how I can get more details about what's going on?
Sheng Chen
@jdneo
@pstuermlinger Could you please file an issue for this and attach a sample project(if it's possible)?
Patrick Stürmlinger
@pstuermlinger
Fixed it by removing @RunWith(MockitoJUnitRunner.class) annotation.
Ross Wang
@AsturaPhoenix
Hi. I just updated my vscode Java extensions after a while and although I can run tests individually, test discovery does not seem to work in the test explorer. My tests are under src/test/java. There are errors in the extension host logs, but no outward indicators of problems. Any suggestions for next steps?
9 replies
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
@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?
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
This one -
Sheng Chen
@jdneo
@PratikBhowmik Can you see those tests in the test explorer? And what's your test runner's version installed?
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.