I have two machines, one Continuus integration server and one developer machine.
Both machines use the same version of java, maven and grails, and both are running Ubuntu. The only difference I can think of is that CI is in a virtualized environment.
Some evidence:
CI java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
Dev java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
CI mvn -version
Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_24
Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-31-server" arch: "amd64" Family: "unix"
Dev mvn -version
Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_24
Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-31-generic" arch: "amd64" Family: "unix"
Ci grails
Welcome to Grails 1.3.7 - http:
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/local/lib/grails-1.3.7
Dev grails
Welcome to Grails 1.3.7 - http:
Licensed under Apache Standard License 2.0
Grails home is set to: /home/netbrain/dev/apps/grails-1.3.7
I did a clean check using version control on both machines and deleted folders ~/.m2and ~/.ivy2to avoid any indescrepencies.
When I run grails test-appon my CI server, 6 tests seem to fail. When they in my DEV system all go in the same case.
CI grails test-app
Tests Completed in 28213ms ...
-------------------------------------------------------
Tests passed: 14
Tests failed: 6
-------------------------------------------------------
DEV grails test-app
Tests Completed in 25889ms ...
-------------------------------------------------------
Tests passed: 20
Tests failed: 0
-------------------------------------------------------
, , , :
junit.framework.AssertionFailedError: expected:<1> but was:<0>
not-null property references a null or transient value
, , , , " ", !
, - hibernate/memory-database/test phase.
- , . - - , , ?
!
, :
~/.m2, ~/.ivy2, ~/.grails- run grails test-app
- CI, dev-.
EDIT
..
, CI, , grails test-app :integration path.to.failing.tests PASS! grails FAIL!: (
, ...