wakaleo/game-of-life

maven install fail

Closed this issue · 9 comments

hello First Thanks for sample code .
i'm reading jenkins definitive guide ,

my env is windows7 and jdk1.6
i cloned the code and mvn package is successsful
but failed to run mvn install (both jenkins and command line )
please look at the log and help me


[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] gameoflife
[INFO] gameoflife-build
[INFO] gameoflife-core
[INFO] gameoflife-webservice
[INFO] gameoflife-web
[INFO] gameoflife-cli
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing D:\git\wakaleo\game-of-life\pom.xml to C:\Users\bumjin.m2\repository\com\wakaleo\gameoflife\gameoflife\0.7.49-SNAPSHOT\gameoflife-0.7.49-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-build
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-build\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-build\target\surefire-reports


T E S T S

Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false

Results :

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

[INFO] [jar:jar {execution: default-jar}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing D:\git\wakaleo\game-of-life\gameoflife-build\target\gameoflife-build-0.7.49-SNAPSHOT.jar to C:\Users\bumjin.m2\repository\com\wakaleo\gameoflife\gameoflife-build\0.7.49-SNAPSHOT\gameoflife-build-0.7.49-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-core
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-core\src\main\resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-core\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-core\target\surefire-reports


T E S T S

Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false
Running com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec
Running com.wakaleo.gameoflife.domain.WhenYouPrintAGrid
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
Running com.wakaleo.gameoflife.hamcrest.WhenIUseMyCustomHamcrestMatchers
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 sec
Running com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running com.wakaleo.gameoflife.domain.WhenYouCreateACell
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.051 sec
Running com.wakaleo.gameoflife.domain.WhenYouCreateAGrid
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec

Results :

Tests run: 51, Failures: 0, Errors: 0, Skipped: 0

[INFO] [easyb:test {execution: default}]
[INFO] Using easyb dependency org.easyb:easyb-core:jar:1.2:compile
[INFO] Using easyb dependency org.codehaus.groovy:groovy-all:jar:1.7.10:compile
[INFO] Using easyb dependency commons-cli:commons-cli:jar:1.2:compile
[INFO] Using easyb dependency commons-lang:commons-lang:jar:2.5:compile
[INFO] Using easyb dependency ant:ant:jar:1.6.5:compile
[java] Running addition by example story (D:\git\wakaleo\game-of-life\gameoflife-core\src\test\easyb\com\wakaleo\gameoflife\domain\AdditionByExample.story)
[java] Scenarios run: 10, Failures: 0, Pending: 0, Time elapsed: 0.789 sec
[java] Running universe spawns next generation story (D:\git\wakaleo\game-of-life\gameoflife-core\src\test\easyb\com\wakaleo\gameoflife\domain\UniverseSpawnsNextGeneration.story)
[java] Scenarios run: 2, Failures: 0, Pending: 0, Time elapsed: 0.071 sec
[java] Running universe spawns next generation by example story (D:\git\wakaleo\game-of-life\gameoflife-core\src\test\easyb\com\wakaleo\gameoflife\domain\UniverseSpawnsNextGenerationByExample.story)
[java] Scenarios run: 3, Failures: 0, Pending: 0, Time elapsed: 0.039 sec
[java] Running universe spawns next generation repeatedly story (D:\git\wakaleo\game-of-life\gameoflife-core\src\test\easyb\com\wakaleo\gameoflife\domain\UniverseSpawnsNextGenerationRepeatedly.story)
[java] Scenarios run: 2, Failures: 0, Pending: 2, Time elapsed: 0.033 sec
[java] 17 total behaviors ran with no failures
[java] Writing JUnit report to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.AdditionByExample.xml
[java] JUnit report written to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.AdditionByExample.xml
[java] Writing JUnit report to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGeneration.xml
[java] JUnit report written to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGeneration.xml
[java] Writing JUnit report to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGenerationByExample.xml
[java] JUnit report written to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGenerationByExample.xml
[java] Writing JUnit report to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGenerationRepeatedly.xml
[java] JUnit report written to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGenerationRepeatedly.xml
[INFO] [jar:jar {execution: default-jar}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing D:\git\wakaleo\game-of-life\gameoflife-core\target\gameoflife-core-0.7.49-SNAPSHOT.jar to C:\Users\bumjin.m2\repository\com\wakaleo\gameoflife\gameoflife-core\0.7.49-SNAPSHOT\gameoflife-core-0.7.49-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-webservice
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-webservice\src\main\resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-webservice\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-webservice\target\surefire-reports


T E S T S

Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false

Results :

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

[INFO] [jar:jar {execution: default-jar}]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] [install:install {execution: default-install}]
[INFO] Installing D:\git\wakaleo\game-of-life\gameoflife-webservice\target\gameoflife-webservice-0.7.49-SNAPSHOT.jar to C:\Users\bumjin.m2\repository\com\wakaleo\gameoflife\gameoflife-webservice\0.7.49-SNAPSHOT\gameoflife-webservice-0.7.49-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-web
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-web\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] [surefire:test {execution: unit-tests}]
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-web\target\surefire-reports


T E S T S

Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false
Running com.wakaleo.gameoflife.web.controllers.WhenDisplayingTheHomePage
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
Running com.wakaleo.gameoflife.web.controllers.WhenCreatingANewGame
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.286 sec

Results :

Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp [gameoflife-web] in [D:\git\wakaleo\game-of-life\gameoflife-web\target\gameoflife]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\git\wakaleo\game-of-life\gameoflife-web\src\main\webapp]
[INFO] Webapp assembled in [143 msecs]
[INFO] Building war: D:\git\wakaleo\game-of-life\gameoflife-web\target\gameoflife.war
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
[INFO] Preparing jetty:run
[WARNING] Removing: run from forked lifecycle, to prevent recursive invocation.
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-web\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [jetty:run {execution: start-jetty}]
[INFO] Configuring Jetty for project: gameoflife-web
[INFO] webAppSourceDirectory D:\git\wakaleo\game-of-life\gameoflife-web\src\main\webapp does not exist. Defaulting to D:\git\wakaleo\game-of-life\gameoflife-web\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = D:\git\wakaleo\game-of-life\gameoflife-web\target\classes
[INFO] Context path = /
[INFO] Tmp directory = D:\git\wakaleo\game-of-life\gameoflife-web\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = file:/D:/git/wakaleo/game-of-life/gameoflife-web/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = D:\git\wakaleo\game-of-life\gameoflife-web\src\main\webapp
[INFO] Starting jetty 7.1.0.v20100505 ...
[INFO] Started Jetty Server
[INFO] [surefire:test {execution: integration-tests}]
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-web\target\surefire-reports


T E S T S

Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false
Running com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Tests run: 8, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 6.622 sec <<< FAILURE!
Running com.wakaleo.gameoflife.web.webtests.WhenTheUserGoesToTheHomePage
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.085 sec
Running com.wakaleo.gameoflife.web.webtests.WhenTheUserEntersAnInitialGrid
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.254 sec

Results :

Tests in error:
anEmptyGridShouldProduceAnEmptyGrid(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aGridWithOneCellShouldProduceAnEmptyGrid(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aGridWithTwoCellsShouldProduceAnEmptyGrid(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aStableCellSetShouldProduceTheSameSetOfCells(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aRotatingCellSetShouldProduceTheExpectedNewSetOfCells(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aRotatingCellSetShouldProduceTheOriginalSetOfCellsAfterTwoGenerations(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: submit
aRotatingCellSetShouldProduceTheOriginalSetOfCellsAfterThreeGenerations(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: submit

Tests run: 15, Failures: 0, Errors: 7, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to D:\git\wakaleo\game-of-life\gameoflife-web\target\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Mon Oct 17 16:44:44 KST 2011
[INFO] Final Memory: 39M/63M
[INFO] ------------------------------------------------------------------------

Thanks - this was indeed a Windows-specific issue. I've updated the demo app and checked that it works on all platforms.

I am getting a similar error message on Ubuntu 10.04 that only began to occur when I added the javadoc:javadoc top level maven target as per the section "More Reporting-- Displaying Javadoc" in the book, "Jenkins: The Definitive Guide: Continuous integration for the masses" By John Ferguson Smart". I had successfully done every prior step in the book using Jenkins. The error message is the following:

[INFO] Preparing javadoc:javadoc
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:

  1. com.wakaleo.gameoflife:gameoflife-core:jar:0.8.8-SNAPSHOT
    Try downloading the file manually from the project website.
 One odd thing I noticed is that the screenshot in Figure 2-25 shows  "clean install -o" and "javadoc:javadoc -o" 

whereas prior screen shots do not show that "-o" option.

I got the error above when not using that "-o" option.  I tried again with that "-o" option added, and the same error occurred.  I checked an file "gameoflife-core-0.8.8-SNAPSHOT.jar" does physically exist in the target directory. 

I next tried changing "clean package" to instead be "clean package install". Holy cow, did that change things! Out of nowhere a bunch of browser windows started opening up towards the end of the build and the Conway's game of life began playing itself! Then finally, the blue ball appeared. The JavaDoc finally appeared too, just as it showed in figure 2-26.

I wonder if the author might comment about this. 

Yes, there is an error in the text - it should be "clean install"

Hi I have been playing with this thing for the whole day now..... sigh.... what should have been a trivial exercise on ubuntu has kept me busy for way to long I hope you could be so nice to help here.

Firstly I forked the project and set everything up. When I do a build with Maven 3.0.5 I get that some of the tests fail with the following output.


T E S T S

Running com.wakaleo.gameoflife.domain.WhenYouPrintAGrid
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.264 sec <<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse
Tests run: 11, Failures: 1, Errors: 7, Skipped: 0, Time elapsed: 0.07 sec <<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateAGrid

Tests run: 16, Failures: 0, Errors: 14, Skipped: 0, Time elapsed: 0.066 sec <<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString
Tests run: 8, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.034 sec <<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife
Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.012 sec <<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateACell
Tests run: 6, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec <<< FAILURE!

Results :

Failed tests: shouldBeAbleToReadAStringGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouPrintAGrid):
shouldBeAbleToReadALargeStringGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouPrintAGrid):
aUserCanAssignALiveCellAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse):
aLiveCellShouldBeRepresentedByAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):
aLiveCellShouldBePrintedAsAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):
aLiveCellSymbolShouldBeAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

Tests in error:
aUniverseSeededWithAGridContainingASingleLiveCellContentWillSpawnAnEmptyGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)
aUniverseSeededWithAGridWithLivingCellsContentWillContainThatGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)
aUniverseSpawnsANewGridInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)
aUserCanAssignADeadCellAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)
aUserCanReadALiveCellValueAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)
aUserCanReadADeadCellValueAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)
aUserCanObtainTheGridContentsAsAnArrayOfCells(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)
shouldBeAbleToSeedAGridWithANonEmptyString(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToCountLiveNeighboursOfACell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToCountLiveNeighboursOfACellOnBoundaries(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToCountLiveNeighboursOfACellInTheMiddleOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToCountLiveNeighboursOfACellOnAnotherLine(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToCountLiveNeighboursOfACellOnDiagonalsAndStraightLines(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldNotCountTheTargetCellAsANeighbour(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToReadTheStateOfALivingCell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToReadTheStateOfADeadCell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToReadTheWidthOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToReadTheHeightOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToObtainTheGridContentsAsAnArray(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
theGridContentsAsAnArrayShouldBeTheCorrectSize(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
ModifyingTheGridContentsAsAnArrayShouldNotModifyTheOriginalContents(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)
shouldBeAbleToReadAGridContainingASingleCellFromAString(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)
shouldBeAbleToReadAGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)
shouldBeAbleToReadAnAsymetricalGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)
shouldBeAbleToReadALargerGrid(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)
shouldBeAbleToReadAVeryLargerGrid(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)
aDeadCellWithOneLiveNeighbourShouldRemainDeadInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)
liveCellaWith2or3iveNeighbourShouldRemainAliveInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)
aLiveCellWithExactlyTwoLiveNeighbourShouldRemainAliveInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

Tests run: 49, Failures: 6, Errors: 29, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ........................................ SUCCESS [11.785s]
[INFO] gameoflife-build .................................. SUCCESS [2.718s]
[INFO] gameoflife-core ................................... FAILURE [3.839s]
[INFO] gameoflife-web .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.685s
[INFO] Finished at: Wed Apr 10 14:10:50 SAST 2013
[INFO] Final Memory: 29M/172M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (unit-tests) on project gameoflife-core: There are test failures.
[ERROR]
[ERROR] Please refer to /var/lib/jenkins/jobs/GameOfLifeDefault/workspace/gameoflife-core/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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :gameoflife-core
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

It should work now.

  • John.

On 10 April 2013 22:12, privato notifications@github.com wrote:

Hi I have been playing with this thing for the whole day now..... sigh....
what should have been a trivial exercise on ubuntu has kept me busy for way
to long I hope you could be so nice to help here.

Firstly I forked the project and set everything up. When I do a build with

Maven 3.0.5 I get that some of the tests fail with the following output.

T E S T S

Running com.wakaleo.gameoflife.domain.WhenYouPrintAGrid
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.264 sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse
Tests run: 11, Failures: 1, Errors: 7, Skipped: 0, Time elapsed: 0.07 sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateAGrid

Tests run: 16, Failures: 0, Errors: 14, Skipped: 0, Time elapsed: 0.066
sec <<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString
Tests run: 8, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.034 sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife
Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.012 sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateACell
Tests run: 6, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec
<<< FAILURE!

Results :

Failed tests:
shouldBeAbleToReadAStringGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouPrintAGrid):

shouldBeAbleToReadALargeStringGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouPrintAGrid):

aUserCanAssignALiveCellAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse):

aLiveCellShouldBeRepresentedByAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

aLiveCellShouldBePrintedAsAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

aLiveCellSymbolShouldBeAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

Tests in error:

aUniverseSeededWithAGridContainingASingleLiveCellContentWillSpawnAnEmptyGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUniverseSeededWithAGridWithLivingCellsContentWillContainThatGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUniverseSpawnsANewGridInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanAssignADeadCellAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanReadALiveCellValueAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanReadADeadCellValueAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanObtainTheGridContentsAsAnArrayOfCells(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

shouldBeAbleToSeedAGridWithANonEmptyString(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnBoundaries(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellInTheMiddleOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnAnotherLine(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnDiagonalsAndStraightLines(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldNotCountTheTargetCellAsANeighbour(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheStateOfALivingCell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheStateOfADeadCell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheWidthOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheHeightOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToObtainTheGridContentsAsAnArray(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

theGridContentsAsAnArrayShouldBeTheCorrectSize(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

ModifyingTheGridContentsAsAnArrayShouldNotModifyTheOriginalContents(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadAGridContainingASingleCellFromAString(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAnAsymetricalGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadALargerGrid(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAVeryLargerGrid(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

aDeadCellWithOneLiveNeighbourShouldRemainDeadInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

liveCellaWith2or3iveNeighbourShouldRemainAliveInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

aLiveCellWithExactlyTwoLiveNeighbourShouldRemainAliveInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

Tests run: 49, Failures: 6, Errors: 29, Skipped: 0

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ........................................ SUCCESS
[11.785s]
[INFO] gameoflife-build .................................. SUCCESS [2.718s]
[INFO] gameoflife-core ................................... FAILURE [3.839s]
[INFO] gameoflife-web .................................... SKIPPED

[INFO]

[INFO] BUILD FAILURE

[INFO]

[INFO] Total time: 19.685s
[INFO] Finished at: Wed Apr 10 14:10:50 SAST 2013
[INFO] Final Memory: 29M/172M

[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.10:test (unit-tests) on
project gameoflife-core: There are test failures.
[ERROR]
[ERROR] Please refer to
/var/lib/jenkins/jobs/GameOfLifeDefault/workspace/gameoflife-core/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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn -rf :gameoflife-core
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16170341
.


John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com

Thanks John it is fine now.

Would you mind a small blurb about what was wrong in the pom file?

On Fri, Apr 12, 2013 at 5:39 AM, John Ferguson Smart <
notifications@github.com> wrote:

It should work now.

  • John.

On 10 April 2013 22:12, privato notifications@github.com wrote:

Hi I have been playing with this thing for the whole day now.....
sigh....
what should have been a trivial exercise on ubuntu has kept me busy for
way
to long I hope you could be so nice to help here.

Firstly I forked the project and set everything up. When I do a build
with

Maven 3.0.5 I get that some of the tests fail with the following output.

T E S T S

Running com.wakaleo.gameoflife.domain.WhenYouPrintAGrid
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.264
sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse
Tests run: 11, Failures: 1, Errors: 7, Skipped: 0, Time elapsed: 0.07
sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateAGrid

Tests run: 16, Failures: 0, Errors: 14, Skipped: 0, Time elapsed: 0.066
sec <<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString
Tests run: 8, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.034
sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife
Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.012
sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateACell
Tests run: 6, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.025
sec
<<< FAILURE!

Results :

Failed tests:

shouldBeAbleToReadAStringGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouPrintAGrid):

shouldBeAbleToReadALargeStringGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouPrintAGrid):

aUserCanAssignALiveCellAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse):

aLiveCellShouldBeRepresentedByAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

aLiveCellShouldBePrintedAsAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

aLiveCellSymbolShouldBeAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

Tests in error:

aUniverseSeededWithAGridContainingASingleLiveCellContentWillSpawnAnEmptyGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUniverseSeededWithAGridWithLivingCellsContentWillContainThatGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUniverseSpawnsANewGridInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanAssignADeadCellAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanReadALiveCellValueAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanReadADeadCellValueAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanObtainTheGridContentsAsAnArrayOfCells(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

shouldBeAbleToSeedAGridWithANonEmptyString(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnBoundaries(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellInTheMiddleOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnAnotherLine(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnDiagonalsAndStraightLines(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldNotCountTheTargetCellAsANeighbour(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheStateOfALivingCell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheStateOfADeadCell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheWidthOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheHeightOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToObtainTheGridContentsAsAnArray(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

theGridContentsAsAnArrayShouldBeTheCorrectSize(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

ModifyingTheGridContentsAsAnArrayShouldNotModifyTheOriginalContents(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadAGridContainingASingleCellFromAString(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAnAsymetricalGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadALargerGrid(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAVeryLargerGrid(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

aDeadCellWithOneLiveNeighbourShouldRemainDeadInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

liveCellaWith2or3iveNeighbourShouldRemainAliveInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

aLiveCellWithExactlyTwoLiveNeighbourShouldRemainAliveInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

Tests run: 49, Failures: 6, Errors: 29, Skipped: 0

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ........................................ SUCCESS
[11.785s]
[INFO] gameoflife-build .................................. SUCCESS
[2.718s]
[INFO] gameoflife-core ................................... FAILURE
[3.839s]
[INFO] gameoflife-web .................................... SKIPPED

[INFO]

[INFO] BUILD FAILURE

[INFO]

[INFO] Total time: 19.685s
[INFO] Finished at: Wed Apr 10 14:10:50 SAST 2013
[INFO] Final Memory: 29M/172M

[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.10:test (unit-tests) on
project gameoflife-core: There are test failures.
[ERROR]
[ERROR] Please refer to

/var/lib/jenkins/jobs/GameOfLifeDefault/workspace/gameoflife-core/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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn -rf :gameoflife-core
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE


Reply to this email directly or view it on GitHub<
https://github.com/wakaleo/game-of-life/issues/5#issuecomment-16170341>
.


John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16274441
.

Nothing wrong with the pom.xml file, but the deliberate error in Cell,java
mentioned in the book to illustrate build failures got into the master
branch by mistake.

On 12 April 2013 19:23, privato notifications@github.com wrote:

Thanks John it is fine now.

Would you mind a small blurb about what was wrong in the pom file?

On Fri, Apr 12, 2013 at 5:39 AM, John Ferguson Smart <
notifications@github.com> wrote:

It should work now.

  • John.

On 10 April 2013 22:12, privato notifications@github.com wrote:

Hi I have been playing with this thing for the whole day now.....
sigh....
what should have been a trivial exercise on ubuntu has kept me busy
for
way
to long I hope you could be so nice to help here.

Firstly I forked the project and set everything up. When I do a build
with
Maven 3.0.5 I get that some of the tests fail with the following

output.

T E S T S

Running com.wakaleo.gameoflife.domain.WhenYouPrintAGrid
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.264
sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse
Tests run: 11, Failures: 1, Errors: 7, Skipped: 0, Time elapsed: 0.07
sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateAGrid

Tests run: 16, Failures: 0, Errors: 14, Skipped: 0, Time elapsed:
0.066
sec <<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString
Tests run: 8, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.034
sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife
Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.012
sec
<<< FAILURE!
Running com.wakaleo.gameoflife.domain.WhenYouCreateACell
Tests run: 6, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.025
sec
<<< FAILURE!

Results :

Failed tests:

shouldBeAbleToReadAStringGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouPrintAGrid):

shouldBeAbleToReadALargeStringGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouPrintAGrid):

aUserCanAssignALiveCellAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse):

aLiveCellShouldBeRepresentedByAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

aLiveCellShouldBePrintedAsAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

aLiveCellSymbolShouldBeAnAsterisk(com.wakaleo.gameoflife.domain.WhenYouCreateACell):

Tests in error:

aUniverseSeededWithAGridContainingASingleLiveCellContentWillSpawnAnEmptyGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUniverseSeededWithAGridWithLivingCellsContentWillContainThatGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUniverseSpawnsANewGridInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanAssignADeadCellAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanReadALiveCellValueAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanReadADeadCellValueAtAGivenPointInTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

aUserCanObtainTheGridContentsAsAnArrayOfCells(com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse)

shouldBeAbleToSeedAGridWithANonEmptyString(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnBoundaries(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellInTheMiddleOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnAnotherLine(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToCountLiveNeighboursOfACellOnDiagonalsAndStraightLines(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldNotCountTheTargetCellAsANeighbour(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheStateOfALivingCell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheStateOfADeadCell(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheWidthOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadTheHeightOfTheGrid(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToObtainTheGridContentsAsAnArray(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

theGridContentsAsAnArrayShouldBeTheCorrectSize(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

ModifyingTheGridContentsAsAnArrayShouldNotModifyTheOriginalContents(com.wakaleo.gameoflife.domain.WhenYouCreateAGrid)

shouldBeAbleToReadAGridContainingASingleCellFromAString(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAnAsymetricalGridContainingLiveAndDeadCells(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadALargerGrid(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

shouldBeAbleToReadAVeryLargerGrid(com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString)

aDeadCellWithOneLiveNeighbourShouldRemainDeadInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

liveCellaWith2or3iveNeighbourShouldRemainAliveInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

aLiveCellWithExactlyTwoLiveNeighbourShouldRemainAliveInTheNextGeneration(com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife)

Tests run: 49, Failures: 6, Errors: 29, Skipped: 0

[INFO]


[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ........................................ SUCCESS
[11.785s]
[INFO] gameoflife-build .................................. SUCCESS
[2.718s]
[INFO] gameoflife-core ................................... FAILURE
[3.839s]
[INFO] gameoflife-web .................................... SKIPPED
[INFO]


[INFO] BUILD FAILURE
[INFO]


[INFO] Total time: 19.685s
[INFO] Finished at: Wed Apr 10 14:10:50 SAST 2013
[INFO] Final Memory: 29M/172M
[INFO]


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.10:test (unit-tests)
on
project gameoflife-core: There are test failures.
[ERROR]
[ERROR] Please refer to

/var/lib/jenkins/jobs/GameOfLifeDefault/workspace/gameoflife-core/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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the
command
[ERROR] mvn -rf :gameoflife-core
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE


Reply to this email directly or view it on GitHub<
https://github.com/wakaleo/game-of-life/issues/5#issuecomment-16170341>
.


John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com


Reply to this email directly or view it on GitHub<
https://github.com/wakaleo/game-of-life/issues/5#issuecomment-16274441>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16283593
.


John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com

New to everything in the book. Excellent text, thank you!

Starting on first build. Getting

git version 1.8.3.msysgit.0
ERROR: Error cloning remote repo 'game-of-life' : Could not clone git@github.com:LarryBruce/game-of-life.git
hudson.plugins.git.GitException: Could not clone git@github.com:LarryBruce/game-of-life.git

and later ..

Caused by: hudson.plugins.git.GitException: Error performing command: git.exe clone --progress -o game-of-life

I cloned your project initially. Is it trying to clone my clone and failing? Believe I setup project as stated.
Have both a local and a remote clone for game-of-life. Is that the problem?

Tests do not run i am getting this following output, please help i really want to move on.


T E S T S

Results :

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

[INFO]
[INFO] --- maven-easyb-plugin:1.4:test (default) @ gameoflife ---
[INFO] C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\src\test\stories does not exists. Skipping easyb testing
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (integration-tests) @ gameoflife ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\target\surefire-reports


T E S T S

Results :

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

[INFO]
[INFO] --- jacoco-maven-plugin:0.6.3.201306030806:report (jacoco-site) @ gameoflife ---
[INFO] Skipping JaCoCo for project with packaging type 'pom'
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ gameoflife ---
[INFO] Installing C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\pom.xml to C:\Windows\system32\config\systemprofile.m2\repository\com\wakaleo\gameoflife\gameoflife\1.0-SNAPSHOT\gameoflife-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-build 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gameoflife-build ---
[INFO] Deleting C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ gameoflife-build ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gameoflife-build ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- jacoco-maven-plugin:0.6.3.201306030806:prepare-agent (jacoco-initialize) @ gameoflife-build ---
[INFO] argLine set to "-javaagent:C:\Windows\system32\config\systemprofile.m2\repository\org\jacoco\org.jacoco.agent\0.6.3.201306030806\org.jacoco.agent-0.6.3.201306030806-runtime.jar=destfile=C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target\jacoco.exec"
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ gameoflife-build ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ gameoflife-build ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ gameoflife-build ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ gameoflife-build ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (unit-tests) @ gameoflife-build ---
[INFO] No tests to run.
[INFO] Surefire report directory: C:\Program Files (x86)\Jenkins\jobs\gameoflife-default\workspace\gameoflife-build\target\surefire-reports