ifedorenko / com.ifedorenko.m2e.sourcelookup

84 stars 13 forks source link

Add contextual shortcut, i.e.: org.eclipse.debug.ui.launchShortcuts #21

Closed bitstrings closed 7 years ago

bitstrings commented 7 years ago

Might be great to have "Maven Junit" contextual shortcut.

ifedorenko commented 7 years ago

What is "Maven JUnit", can you elaborate?

For the record, jdt "JUnit Test" and m2e "Maven JUnit Test" are supposed to use advanced sourcelookup already.

bitstrings commented 7 years ago

I use the source lookup from

https://repository.takari.io/content/sites/m2e.extras/takari-team/0.1.0/N/LATEST

But Advanced doesn't work in Oxygen (Debug as).

So I use the "Maven JUnit Launcher" for mavendev (plugin) instead and it works good.

However, there is no contextual shortcut like JUnit or TestNG when right-clicking on a Test (Debug as).

ifedorenko commented 7 years ago

When did you last update your takari-team/0.1.0/N/LATEST version? It is supposed to come with newer sourcelookup [1] and should support jdt "JUnit Test" launch configuration out of the box. You do need to choose "Advanced Eclipse JUnit Launcher" either in workspace preferences or individual launch configurations [2].

As for TestNG, I don't use it myself and cannot comment, sorry.

[1] https://repository.takari.io/content/sites/m2e.extras/sourcelookup/1.2.0/N/LATEST/ [2] https://screencast.com/t/oMGXUNxVX

bitstrings commented 7 years ago

No no I'm not expecting support for TestNG, that was just an example.

I've tested this yesterday.

However i see a new url with v1.2.0. I will test that.

It's nice to have all these maven tools but to find them is not trivial.

bitstrings commented 7 years ago

The URL you gave me https://repository.takari.io/content/sites/m2e.extras/sourcelookup/1.2.0/N/LATEST/ gets me the same version I am using which doesn't work with Oxygen.

bitstrings commented 7 years ago

This is what I get (Debug as)

image

It used to work.

bitstrings commented 7 years ago

v1.2.0.201704030110 seems to work...