Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Grouper 2.1.3: errors with " -test -all"

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Grouper 2.1.3: errors with " -test -all"

Chronological Thread 
  • From: Chris Hyzer <>
  • To: Dominique Petitpierre <>, "" <>
  • Subject: RE: [grouper-users] Grouper 2.1.3: errors with " -test -all"
  • Date: Thu, 31 Jan 2013 00:29:35 +0000
  • Accept-language: en-US

I just ran all the tests of 2.1.3 against oracle and it worked fine.
If the tests run individually, but not in the suite, then Im not concerned...
there might be differences with caches and with clearing out the DB all of
the sudden, or other that would not happen in real life.

Also, I think Junit doesn’t guarantee the order that tests are run, so they
are different each time, which makes things different, or again with caching,
if tests take longer, they can behave a little different.

C:\mchyzer\grouper\test\grouper_v2_1_3\grouper.apiBinary-2.1.3\bin>gsh -test

Time: 3,678.665

OK (2157 tests)

The only change I made was to

hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:xe

hibernate.connection.username = grouper2_1
# If you are using an empty password, depending upon your version of
# Java and Ant you may need to specify a password of "".
# Note: you can keep passwords external and encrypted:
hibernate.connection.password = **********


-----Original Message-----

On Behalf Of Dominique Petitpierre
Sent: Wednesday, January 30, 2013 10:53 AM

Subject: [grouper-users] Grouper 2.1.3: errors with " -test -all"


after an initial install of Grouper 2.1.3, executing " -test
-all" reports errors (cf annexe gsh.sh_-test_-all.out1). Curiously
these errors vary from one run to the other although I cannot see what
could be different in the context (cf annexe gsh.sh_-test_-all.out2);
there was even a run without errors but it could not be reproduced.

When the test classes that reported the errors are subsequently run
independently (e.g. " -test subj.TestSubjectFinder", cf annexe
gsh.sh_-test_subj.TestSubjectFinder.out1 ) there are no errors.

It occurs both after a reinitialisation from scratch ("
-registry -noprompt -droponly -runscript", " -registry -noprompt
-runsqlfile ddlScripts/grouperDdl_20130125_17_07_25_123.sql" or after
a reset " -registry -reset").

One thing that is curious is that the output of the test command is
not always in the same order, as if some tests were run concurrently.

- What could be the cause of the errors?
- Why do the symptoms vary?

OS: Solaris 11.0 x86
java version: "1.7.0_11"
Oracle DB version: 11.2.0

It occurs with both distributions grouper.apiBinary-2.1.3 and
grouper.api-2.1.3. Only two configuration files have been minimally
modified: conf/ and bin/ All the
other configuration files are as distributed.

Thanks in advance for your help!

Best regards,
Mr Dominique Petitpierre, user=Dominique.Petitpierre
IT Division, University of Geneva, Switzerland

Archive powered by MHonArc 2.6.16.

Top of Page