Comments (3)
This error comes from Eclipse JDT's JUnit support itself.
The problem could be fixable by Eclipse, for methods like def "test that blah"() since it assumes that test methods meet Java naming standards. Perhaps that's where we should be reporting this.
However, for tests using @unroll with string formats, the issue can't really be fixed since the testcase method's name is not reported in the JUnit results, only the testcase's name.
from groovy-eclipse.
The issue on JDT side is reported here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=343129
Help is welcome to fix the issue.
from groovy-eclipse.
The problem starts in OpenTestAction, which truncates method name before first non-identifier character. You will need to follow up with the JDT bug to get resolution.
private static String extractRealMethodName(TestCaseElement testCase) {
//workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=334864 :
if (testCase.isIgnored() && JavaConventions.validateJavaTypeName(testCase.getTestName(), JavaCore.VERSION_1_5, JavaCore.VERSION_1_5).getSeverity() != IStatus.ERROR) {
return null;
}
//workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=275308 :
String testMethodName= testCase.getTestMethodName();
for (int i= 0; i < testMethodName.length(); i++) {
if (!Character.isJavaIdentifierPart(testMethodName.charAt(i))) {
return testMethodName.substring(0, i);
}
}
return testMethodName;
}
from groovy-eclipse.
Related Issues (20)
- Fix type inferencing and syntax highlighting for `this.field` reference within map-based type HOT 1
- Fix type inferencing and syntax highlighting for reference to public field of map-based type HOT 1
- Fix type inferencing and syntax highlighting for package-private field of map-based, other-package subclass HOT 1
- Fix type inferencing and syntax highlighting for other-package reference to package-private field HOT 1
- Fix type inferencing and syntax highlighting for same-unit subclass HOT 1
- Fix type inferencing and syntax highlighting for `class` and `metaClass` properties of map-based type HOT 1
- Fix source range for property or attribute expression within binary expression HOT 1
- Fix syntax highlighting and code navigation for type-checked `metaClass` property HOT 1
- Fix source range for dynamic name selector HOT 1
- Recent updates of groovy-eclipse are all failing with "Unexpected end of ZLIB input stream" HOT 4
- Fix type inferencing and syntax highlighting for closure properties HOT 1
- Fix type inferencing and syntax highlighting for static owner and delegate of closure HOT 1
- Fix type inferencing and syntax highlighting for outer class field vs. dynamic property HOT 4
- In last month, unable to install any (ok, only checked two) version of groovy-eclipse, in multiple Eclipse distributions HOT 23
- Add support for Groovy 4.0.22
- Add support for Groovy 3.0.22
- Javadoc hover for method of parameterized type HOT 1
- Fix type inferencing for array `clone()` method HOT 1
- Fix type inferencing for arithmetic operations HOT 1
- Add support for Eclipse 4.33 (2024-09)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from groovy-eclipse.