vscode-java-test icon indicating copy to clipboard operation
vscode-java-test copied to clipboard

Spock support

Open mpodlodowski opened this issue 6 years ago • 20 comments

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?

mpodlodowski avatar Nov 08 '18 23:11 mpodlodowski

@mpodlodowski PR is welcome. 😄

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

jdneo avatar Nov 09 '18 01:11 jdneo

Hi @mpodlodowski,

Any luck?

RaviH avatar Dec 17 '18 19:12 RaviH

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?

mpodlodowski avatar Dec 23 '18 01:12 mpodlodowski

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

jdneo avatar Dec 24 '18 01:12 jdneo

com.microsoft.java.test.plugin

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

mpodlodowski avatar Dec 26 '18 13:12 mpodlodowski

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

jdneo avatar Dec 27 '18 01:12 jdneo

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?

mpodlodowski avatar Dec 27 '18 10:12 mpodlodowski

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

jdneo avatar Dec 28 '18 01:12 jdneo

Done. Still no luck.

Failed to connect to remote VM. Connection refused.
Connection refused (Connection refused)

mpodlodowski avatar Dec 28 '18 09:12 mpodlodowski

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.

jdneo avatar Dec 29 '18 03:12 jdneo

Any news guys?)

sapelkinAV avatar Jun 21 '19 12:06 sapelkinAV

Any News Guys????

napalm23zero avatar Dec 25 '19 19:12 napalm23zero

This would be very much appreciated...

TomerFi avatar Jul 13 '20 18:07 TomerFi

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

juusu avatar Jan 18 '21 11:01 juusu

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.

jdneo avatar Jan 19 '21 01:01 jdneo

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

damian-szwajkos avatar Jun 04 '21 08:06 damian-szwajkos

Just bumping the above comment. Any word?

changeling avatar Jun 30 '22 05:06 changeling