details:   /erp/devel/pi/rev/91b7608a44e8
changeset: 12060:91b7608a44e8
user:      Stefan Hühner <stefan.huehner <at> openbravo.com>
date:      Mon May 09 13:17:55 2011 +0200
summary:   Disable two individual testcases as covered by dbconsistency test 
and quite slow
Those two tests to check all the database + in a loop all modules in that db
again which is testing the same modules two times. Additionally the int-
dbconsistency tests are doing the same check for each exported module in that
test which are all modules excluding the template (org.openbravo.v3 (in pi)).
That module doesn't need to be covered by this test as it doesn't contain any
db-elements.
Impact on test-runtime : about 1min less on pgsql, about 6-7min less on oracle

diffstat:

 src-test/org/openbravo/test/system/SystemValidatorTest.java |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r d6b7201d8d3e -r 91b7608a44e8 
src-test/org/openbravo/test/system/SystemValidatorTest.java
--- a/src-test/org/openbravo/test/system/SystemValidatorTest.java       Mon May 
09 13:11:14 2011 +0200
+++ b/src-test/org/openbravo/test/system/SystemValidatorTest.java       Mon May 
09 13:17:55 2011 +0200
@@ -55,7 +55,8 @@
   /**
    * Executes the {@link DatabaseValidator#validate()} method on the current 
database.
    */
-  public void testSystemValidation() {
+  public void noTestSystemValidation() {
+    // disabled as covered by dbconsistency test and quite slow
     setSystemAdministratorContext();
     final DatabaseValidator databaseValidator = new DatabaseValidator();
     databaseValidator.setDatabase(createDatabaseObject(null));
@@ -67,7 +68,8 @@
    * Executes the {@link DatabaseValidator#validate()} method on the current 
database for all
    * modules.
    */
-  public void testSystemValidationModules() {
+  public void noTestSystemValidationModules() {
+    // disabled as covered by dbconsistency test and quite slow
     setSystemAdministratorContext();
     for (Module module : OBDal.getInstance().createQuery(Module.class, 
"").list()) {
       final DatabaseValidator databaseValidator = new DatabaseValidator();

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to