Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0.0Release
-
Fix Version/s: None
-
Component/s: Testing, Running, Debugging
-
Environment:Mac OS 10.6.2
Eclipse Java EE 3.5 SR1
Groovy-Eclipse Feature 2.0.1.20100219-1700-e35 org.codehaus.groovy.eclipse.feature.feature.group
-
Number of attachments :
Description
The following problems exist in the JUnit view (NOT the source editor):
1. The name of a method that contains parentheses is truncated. For example, "with(parens)" will be displayed as "with".
2. When a method that contains parentheses is executed by selecting "Run" from the context menu, the following error occurs: "The input type of the launch configuration does not exist"
3. When a method that contains parentheses is double-clicked, the following error occurs: "Test class not found in selected project"
4. When a method that contains spaces, say "with space", is double-clicked, the following error occurs: "Method 'with' not found. Opening the test class." (Note how the name is again truncated.)
Behavior is the same for JUnit4 and Spock tests. Here is the test code I used:
import org.junit.Test class MethodNamesTest { @Test void standard() {} @Test void "stringy"() {} @Test void "with space"() {} @Test void "with(parens)"() {} }
import spock.lang.* class MethodNamesSpec extends Specification { def standard() { expect: true } def "stringy"() { expect: true } def "with space"() { expect: true } def "with(parens)"() { expect: true } }
Issue Links
- is duplicated by
-
GRECLIPSE-1133
Test methods which have spaces in their names cannot be navigated to from JUnit results pane
-
- relates to
-
GRECLIPSE-347
Cannot jump to source code of a test method whose name is valid in Groovy but not in Java
-