Martin,
Ill submit a merge request.
Larry
From: Martin Brumm [mailto:dr....@t-...]
Sent: Monday, October 22, 2018 12:59 PM
To: rai...@li...
Subject: Re: [Rails-devel] Gradle Build Errors
Am 22.10.2018 um 02:53 schrieb Larry North:
These errors occur in the Gradle build of branch rails_2_develop:
1. junit.framework.AssertionFailedError: Class
net.sf.rails.test.TestGame has no public constructor TestCase(String name)
or TestCase()
2. junit.framework.ComparisonFailure: Reports differ in line 2
expected:<PlayerIs,1,Klaus-J[ü]rgen> but was:<PlayerIs,1,Klaus-J[ü]rgen>
3. junit.framework.ComparisonFailure: Reports differ in line 503
expected:<..._COMPANY_LOG,Arne,KK[ÃB,90,180,2,20,KKÃ]B> but
was:<..._COMPANY_LOG,Arne,KK[ÖB,90,180,2,20,KKÖ]B>
4. junit.framework.ComparisonFailure: Reports differ in line 477
expected:<...OMPANY_LOG,Martin,KK[ÃB,75,150,2,20,KKÃ]B> but
was:<...OMPANY_LOG,Martin,KK[ÖB,75,150,2,20,KKÖ]B>
Error 1 occurs because the Gradle test task attempts to run TestGame, which
is not intended as a standalone test class.
The others occur because UTF-8 was not the default file encoding.
I fixed these errors by adding this to build.gradle:
test {
systemProperty 'file.encoding', 'UTF-8'
exclude 'net/sf/rails/test/TestGame.class'
}
Do you want a patch or pull request?
Larry North
Hi Larry,
thanks. If you are willing a pull request would be nice. Otherwise i can fix
that myself :) But yours the honours.
Regards,
Martin
|