@pstuermlinger Could you please file an issue for this and attach a sample project(if it's possible)?
Fixed it by removing @RunWith(MockitoJUnitRunner.class) annotation.
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?
This message was deleted
Sorry, I deleted the thread by mistake and don't know how to recovery it. So I created a new one.
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?
@ctjdr Will this option help your case?
@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?
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.
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?
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?
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
In simple words I am talking about the report where we can see stacktraces and all the pass fail stuffs
This one -
@PratikBhowmik Can you see those tests in the test explorer? And what's your test runner's version installed?