shivadorepally / junitparams

Automatically exported from code.google.com/p/junitparams
0 stars 0 forks source link

Jump to method does not work in the Eclipse JUnit View #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 
in Eclipse Indigo it is not possible to jump to Testcase (failed/succeeded) in 
the JUnit view. It is only possible to Jump to the Class, but not to the 
method, or to one of the parameterized tests. 
The error message that eclipse shows is:
"Test class not found in the selected project"

However i think it should be possible to jump to the method as well. 

Actually i do not know if this is a problem of junitparams or of eclipse. As 
far as i can remember, the standard parameterized tests do work, and so do 
tests using Feed4JUnit. 

I am using version 0.4.

Original issue reported on code.google.com by andreas....@gmail.com on 31 Jan 2012 at 8:36

GoogleCodeExporter commented 8 years ago
Hi,
unfortunately it cannot work, and for standard JUnit Parameterized it's also 
working only partially (clicking on a parameter set works, clicking on the 
method name does not). The problem is that eclipse is using a displayName field 
of a test class/method description for finding class and method name to jump 
to. In order to be able to show parameters properly and readably I had to cheat 
a bit and now eclipse thinks that the printed parameters are a test method 
name, and that printed test method name is a class name. This can not be fixed 
with the current layout of tests in the view, sorry.
If I ever come up with any solution to this, be sure it'll be my no.1

Original comment by lipinski...@gmail.com on 10 Feb 2012 at 10:31

GoogleCodeExporter commented 8 years ago
Now I've implemented a workaround. If you pass a system property 
-DJUnitParams.flat=true, you'll get a flat, clickable list. But you loose the 
parameter data in the descriptions.

Original comment by lipinski...@gmail.com on 7 Nov 2013 at 3:35