Skip to content

Instantly share code, notes, and snippets.

@juliend2
Last active August 29, 2015 14:24
Show Gist options
  • Save juliend2/b82fe04f01c8b951bc66 to your computer and use it in GitHub Desktop.
Save juliend2/b82fe04f01c8b951bc66 to your computer and use it in GitHub Desktop.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running seevibes.utils.GivenAnNGrams
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.896 sec
Running seevibes.persistence.bindings.GivenABindingPersister
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.403 sec
Running seevibes.facebook.api.GivenAPost
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.332 sec
Running seevibes.binders.GivenAnInMemoryShowBinderThatDoesNotHarvestFranceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.098 sec
Running seevibes.facebook.api.GivenAComment
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Running seevibes.interactionbinder.GivenAnEnglishNoStemAnalyzer
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running seevibes.interactionbinder.GivenAKeywordExtractor
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running seevibes.persistence.file.GivenAChecksummingMessageWriter
Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 sec
Running seevibes.binders.GivenAnInMemoryShowBinderWhichHarvestsFranceTwitterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.243 sec
Running seevibes.gnip.GivenAMatchInASingleMarket
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 sec
Running seevibes.ndomain.MarketDetailsJsonProtocolTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.108 sec
Running seevibes.binders.GivenAnInMemoryShowBinderWithASingleSportsMatch
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec
Running seevibes.interactionbinder.GivenAHashtagExtractor
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running seevibes.binders.GivenAPersonaGeoKeyGenerator
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
...
whenWritingMoreThanLimit_thenRolloverOccursOnSync(seevibes.persistence.file.GivenAFilePersister) Time elapsed: 0.035 sec <<< ERROR!
org.scalatest.TestFailedException: List(/usr/local/src/engine/tmp/file-persister-scratch/.nfs000000000323624e0000000c)
Expected 0, but got 1
at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:318)
at seevibes.persistence.file.GivenAFilePersister.newAssertionFailedException(GivenAFilePersister.scala:8)
at org.scalatest.Assertions$class.expect(Assertions.scala:590)
at seevibes.persistence.file.GivenAFilePersister.expect(GivenAFilePersister.scala:8)
at seevibes.persistence.file.GivenAFilePersister.emptyTmp(GivenAFilePersister.scala:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Running seevibes.binders.GivenAnInMemoryShowBinder
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.082 sec
Running seevibes.resources.GivenAReplaceBindingDataRequest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec
Running seevibes.facebook.HarvestScheduleBuilderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec
Running seevibes.facebook.DateArithmeticsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running seevibes.utils.PlatformIdentifierTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec
Running seevibes.utils.GivenAnEmoticonSentimentAnalyze
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running seevibes.ndomain.AiringBindingScoreTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running seevibes.utils.GivenAGenderGuesser
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.012 sec
Running seevibes.facebook.GivenAHarvesterUrlGenerator
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running seevibes.resources.ReplaceBindingDataRequestWithIgnoredShowMarketDetailsTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.777 sec
Running seevibes.interactionbinder.GivenAFrenchNoStemAnalyzer
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running seevibes.twitter.streaming.StreamingHarvesterMachineTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Results :
Tests in error:
whenInstantiatingWithoutTimestampPattern_thenShouldThrowIllegalArgumentException(seevibes.persistence.file.GivenAFilePersister)
whenInstantiatingWithNegativeMaxBytes_thenShouldThrowAnIllegalArgumentException(seevibes.persistence.file.GivenAFilePersister)
whenCallingRollover_thenShouldRenameTheExistingDataFileTo_dotS(seevibes.persistence.file.GivenAFilePersister)
whenCallingRollover_thenCreatesNewDataFile(seevibes.persistence.file.GivenAFilePersister)
whenWritingMoreThanLimit_thenRolloverOccursOnSync(seevibes.persistence.file.GivenAFilePersister)
Tests run: 210, Failures: 0, Errors: 5, Skipped: 0
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on project engine: There are test failures.
[ERROR]
[ERROR] Please refer to /usr/local/src/engine/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
rake aborted!
Command failed with status (1): [mvn dependency:analyze package --quiet...]
Tasks: TOP => release => release:package => test:binder => test:package => target/engine-706.jar
(See full trace by running task with --trace)
diff --git a/Rakefile b/Rakefile
index c96324c..0e38b84 100644
--- a/Rakefile
+++ b/Rakefile
@@ -10,7 +10,7 @@ def set_version(version)
puts "Setting project version to #{version.inspect}"
require "nokogiri"
- poms = FileList["pom.xml"] + FileList["*/pom.xml"]
+ poms = FileList["pom.xml"]
poms.each do |pom|
doc = Nokogiri::XML(File.read(pom))
doc.css("project > version").each do |node|
@@ -122,7 +122,7 @@ namespace :release do
cur_version = find_current_version
set_version(cur_version.to_i)
update_changelog
- sh "git commit --message '[release] cutting new release version #{find_current_version}' -- ChangeLog.md pom.xml */pom.xml"
+ sh "git commit --message '[release] cutting new release version #{find_current_version}' -- ChangeLog.md pom.xml"
end
task :prepare_release_branch do
@@ -134,7 +134,7 @@ namespace :release do
task :increment_and_commit_new_snapshot do
next_version = (find_current_version.to_i + 1).to_s << "-SNAPSHOT"
set_version(next_version)
- sh "git commit --message '[release] upgrading project version for new development' -- pom.xml */pom.xml"
+ sh "git commit --message '[release] upgrading project version for new development' -- pom.xml"
end
task :checkout_release do
@juliend2
Copy link
Author

juliend2 commented Jul 7, 2015

edb rake release TEST=no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment