Closed kentosi closed 10 years ago
Hi,
Thanks for the email – I’ll check it out and see if the test is failing. Which timezone are you in? – that could have a bearing on the tests.
Thanks
Stewart
From: kentosi [mailto:notifications@github.com] Sent: 09 July 2014 02:16 To: modularit/hamcrest-date Subject: [hamcrest-date] Tests failed during maven build (#11)
Hi there,
I tried to clone your project and build the JAR file. Maybe it's me who isn't using maven properly. Either way, here's what I typed out, which failed:
git clone https://github.com/modularit/hamcrest-date cd hamcrest-date mvn package
Here's the snipped that failed:
... Running uk.co.it.modular.hamcrest.date.IsSameOrAfterTest Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec <<< FAILURE! Running uk.co.it.modular.hamcrest.date.IsSameOrBeforeTest Tests run: 12, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec <<< FAILURE! Running uk.co.it.modular.hamcrest.date.IsSameSecondTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running uk.co.it.modular.hamcrest.date.IsSameYearTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running uk.co.it.modular.hamcrest.date.IsWithinTest Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec <<< FAILURE!
Results :
Failed tests: canCompareTheSameDay(uk.co.it.modular.hamcrest.date.IsSameDayTest): canMatchTheSameHourAsInt(uk.co.it.modular.hamcrest.date.IsSameHourTest): canCompareTheSameFullTime(uk.co.it.modular.hamcrest.date.IsSameInstantTest): canCompareABeforeDayMonthYearAndTime(uk.co.it.modular.hamcrest.date.IsSameOrAfterTest): canCompareTheSameDayMonthYearAndTime(uk.co.it.modular.hamcrest.date.IsSameOrBeforeTest): canCompareABeforeDayMonthYearAndTime(uk.co.it.modular.hamcrest.date.IsSameOrBeforeTest): canCompareDatesWithinLimitTime(uk.co.it.modular.hamcrest.date.IsWithinTest):
Tests run: 140, Failures: 7, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.317s [INFO] Finished at: Wed Jul 09 11:08:57 EST 2014 [INFO] Final Memory: 9M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project hamcrest-date: There are test failures. [ERROR] [ERROR] Please refer to /Users/gavnewalkar/code/java/jars/hamcrest-date/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
— Reply to this email directly or view it on GitHub https://github.com/modularit/hamcrest-date/issues/11 . https://github.com/notifications/beacon/1998293__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMDQ4Nzc1MywiZGF0YSI6eyJpZCI6MzY1NDA5NDd9fQ==--c1ad038bfcb442f12e6b7aa17f3b8292aa967fb4.gif
Hi Stewart,
Thanks. I'm in Sydney, Australia.
Gav
Hi Gav, Problem was due to inconsistent use of timezones in tests. All sorted now. Will be fixed with the next release which will be the first 1.0.0 release. Thanks, Stewart
Excellent. Thanks Stewart!
Gav
Hi there,
I tried to clone your project and build the JAR file. Maybe it's me who isn't using maven properly. Either way, here's what I typed out, which failed:
Here's the snipped that failed: