uartois / sonar-golang

Sonarqube plugin for the golang language.
GNU Lesser General Public License v3.0
245 stars 32 forks source link

Maven build Errors. #67

Open caspell opened 6 years ago

caspell commented 6 years ago

Description

Hi,

I get to source and build to maven from eclipse and command.

When i run mvn build or anything. it is return build failre.

i guess problems is "new HashMap<>();" in testExecution and testIgnoreFileStream of CoverageSensorTest class.

or maybe something my fault?

Thank you.

Steps to Reproduce

  1. git clone or eclipse git clone
  2. maven build
  3. failure

Content of your sonar-project.properties

It will help us to check how you configured the plugin.

Log of sonar-scanner related to the plugin

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec - in fr.univartois.sonargo.highlighter.ColorizerTest

Results :

Tests in error: fr.univartois.sonargo.coverage.CoverageSensorTest.testExecution(fr.univartois.sonargo.coverage.CoverageSensorTest) Run 1: CoverageSensorTest.testExecution:114 ? InvalidPath Illegal char <> at index 7... Run 2: CoverageSensorTest.testExecution:114 ? InvalidPath Illegal char <> at index 7...

fr.univartois.sonargo.coverage.CoverageSensorTest.testIgnoreFileStream(fr.univartois.sonargo.coverage.CoverageSensorTest) Run 1: CoverageSensorTest.testIgnoreFileStream:67 ? InvalidPath Illegal char <> at i... Run 2: CoverageSensorTest.testIgnoreFileStream:67 ? InvalidPath Illegal char <> at i...

Tests run: 386, Failures: 0, Errors: 2, Skipped: 1

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.549 s [INFO] Finished at: 2018-03-26T16:33:27+09:00 [INFO] Final Memory: 26M/409M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project sonar-golang-plugin: There are test failures.

Versions

windows 7 or linux jdk 1.8.0_151 maven 3.5.3

Additional Information

thibaultfalque commented 6 years ago

Hi, What is your version of Java ? Have you clone the maintenance branch? I have clone the project and run mvn clean install. I haven't problem.

thibaultfalque commented 6 years ago

@caspell could you close this issue if the problem is resolved ?

thibaultfalque commented 5 years ago

@caspell could you close this issue if the problem is resolved ?