bhlangonijr / chesslib

chess library for legal move generation, FEN/PGN parsing and more
Apache License 2.0
229 stars 80 forks source link

BUILD FAILURE directly after cloning due to PgnHolderTest test errors #21

Closed ghost closed 4 years ago

ghost commented 4 years ago

I'm unable to build the project directly after cloning it because of some PgnHolder related unit tests.

git clone https://www.github.com/bhlangonijr/chesslib.git
cd chesslib/
mvn clean compile package install

Outputs:

Results :

Tests in error:
  testUtf8(com.github.bhlangonijr.chesslib.PgnHolderTest): Error parsing PGN[1, ]:
  testPGNLoad4(com.github.bhlangonijr.chesslib.PgnHolderTest): Error parsing PGN[1, ]:

Tests run: 44, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  20.043 s
[INFO] Finished at: 2020-04-09T17:34:01+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project chesslib: There are test failures.
[ERROR]
[ERROR] Please refer to D:\Projects\chesslib\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
ghost commented 4 years ago

A quick note to say that these failed test units happen only when trying to compile the project. There's no issue when you run them directly from the test class (PgnHolderTest).

bhlangonijr commented 4 years ago

I can't reproduce it in my local env. If anyone reading this ticket is able to reproduce it I'd appreciate if you would add some stacktrace info in the logs (the user who filed this ticket has been deleted).

bhlangonijr commented 4 years ago

Can't reproduce. Should be environment specific. Will close this for now as we don't have more details.