microsoft / vscode-java-test

Run and debug Java test cases in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test
Other
290 stars 124 forks source link

Spock support #425

Open mpodlodowski opened 5 years ago

mpodlodowski commented 5 years ago

Would be great to have Spock support. I am very willing to make a contribution. Is there anything I should be aware of before digging into the problem?

jdneo commented 5 years ago

@mpodlodowski PR is welcome. 😄

Please feel free to ask questions whenever you meet any problems or need any help

RaviH commented 5 years ago

Hi @mpodlodowski,

Any luck?

mpodlodowski commented 5 years ago

Just met some problems trying to debug the Java code - I can't attach to remote debugging port 1044. Is the guide on cs/contributing still valid?

jdneo commented 5 years ago

@mpodlodowski Are you debugging the code under com.microsoft.java.test.plugin or com.microsoft.java.test.runner

mpodlodowski commented 5 years ago

com.microsoft.java.test.plugin

At least I'm trying to. Is it possible?

jdneo commented 5 years ago

Yes, it should be possible. Did you launch the extension first then attach to the remote application?

mpodlodowski commented 5 years ago

I did (with "Launch Extension" config from the repo).

I tried the following:

  1. gulp build-server
  2. Launch Extension
  3. attach debugger

Am I missing something?

jdneo commented 5 years ago

Did you set the target platform in Eclipse when importing the com.microsoft.java.test.plugin?

After importing the project, you can find a file called target.target. Double click it in Eclipse, and in the right top of the editor, click Set as target platform

mpodlodowski commented 5 years ago

Done. Still no luck.

Failed to connect to remote VM. Connection refused.
Connection refused (Connection refused)
jdneo commented 5 years ago

Hmm, another thing needs to pay attention is that we need to wait until the extension has been activated, then we can attach to the remote VM using Eclipse.

You can check whether the extension has been activated by checking if the Java Test Runner output channel has been created.

sapelkinAV commented 5 years ago

Any news guys?)

napalm23zero commented 4 years ago

Any News Guys????

TomerFi commented 4 years ago

This would be very much appreciated...

juusu commented 3 years ago

Any progress? Just started on a new project which uses primarily Spock for testing so this would come in very handy

jdneo commented 3 years ago

Hi friends, so far there is no plan to add more test framework support. But contribution is welcome!

Note that VS Code is now working on a new set of APIs for test purpose, which means the extension might need to have a big refactor in the near future, so I would suggest at least wait until that happens.

damian-szwajkos commented 3 years ago

Hello ;) Any news about Spock framework support? ;)

changeling commented 2 years ago

Just bumping the above comment. Any word?

tiagohumbs commented 1 year ago

Hello... Whats is news ?

SeanCodeMedia commented 8 months ago

Hello is there any new updates on Spock support ?

iaincalderfh commented 8 months ago

Would also really appreciate Spock support