-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String index out of range: -1 when parsing test report #49
Comments
It seems properties file can not contains comments, after remove comments, this Exception not occurs. But I got another Exception:
|
To avoid issues like #49 with # at the end of a line, made comments in a single line.
@xiezhenye the first issue you noticed was related to the comments we added in the properties file We updated the README to make comments compatible with Java properties file. The second issue is different. I renamed the current issue with that problem. |
The plugin can not recognize the name of your test function. This is an example of test function that can be recognized.
Can you upload or show a part of a test file ? |
@thibaultfalque we should make sure the code does not break if the function is not recognized. The code need to check for potential -1 index and live with that. |
I will fix. |
Please check release 1.2.11-RC8. |
@xiezhenye could you close the issue if the problem is resolved ? |
@xiezhenye could you close the issue if the problem is resolved ? |
Description
Got java.io.FileNotFoundException, but the path of report.xml exists.
Steps to Reproduce
Content of your sonar-project.properties
Log of sonar-scanner related to the plugin
Versions
Versions of your sonar installation (server, sonar-scanner), gometalinter, go and OS.
sonar-golang v1.2.11-rc7
SonarQube Scanner 3.0.3.778
Java 1.8.0_73 Oracle Corporation (64-bit)
Mac OS X 10.13.2 x86_64
go 1.9.1
Additional Information
The file
/Users/xiezhenye/Documents/work/xzy/march/report.xml
is really exists.The text was updated successfully, but these errors were encountered: