gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gene...@gump.apache.org
Subject [Gump Wiki] Updated: GumpDevelopment
Date Mon, 19 Jul 2004 15:01:50 GMT
   Date: 2004-07-19T08:01:50
   Editor: AdamJack <ajack@apache.org>
   Wiki: Gump Wiki
   Page: GumpDevelopment
   URL: http://wiki.apache.org/gump/GumpDevelopment

   Add 'Integration Testing'

Change Log:

------------------------------------------------------------------------------
@@ -36,7 +36,7 @@
      log.error('Problems problems...' + str(details), \
            exc_info=1)
 
-= Testing =
+= Unit Testing =
 
 Unit tests (not yet converted to the real pyunit, a knock off but similar) are run using:
 
@@ -57,3 +57,56 @@
 }}}
 
 Basically, when pyunit runs it walks through all test suites attempting to match all {{{testXXX()}}}
methods to the provided pattern (or * for all) and when it finds them, it runs them (with
{{{setUp() and tearDown()}}} run before/after). Any failure (exception) is caught and reported
later.
+
+= Local Integration Testing =
+
+Note: This is closer to a unit test than an integration test, but might grow closer to the
latter.
+
+1) set or export the following:
+
+ GUMP_NO_CVS_UPDATE=true
+ GUMP_WORKSPACE=python\gump\test\resources\full1\mine ['''Note:''' no trailing '''.xml''']
+
+2) Edit the 'mine' (or whatever you call it) workspace (copy it from the workspace.xml in
same directory):
+
+{{{
+<?xml version="1.0" ?>
+<workspace name="Adam"
+           basedir="F:\data\gump-ws"
+           jardir="F:\data\gump-ws\jars"
+           logdir="F:\data\gump-ws\log"
+           pkgdir="F:\data\gum-ws\package"
+           email="ajack@apache.org"
+           mailserver="mail.try.sybase.com"
+           mailinglist="ajack@apache.org"
+           version="0.4">
+
+  <property name="build.sysclasspath" value="only"/>
+  <sysproperty name="build.clonevm" value="true"/>
+
+  <profile href="profile.xml"/>
+
+  <threads updaters="1" builders="0" />
+  <nag to="ajack@apache.org" from="ajack@apache.org"/>
+
+</workspace>
+}}}
+
+'''Note: Change the e-mail address, mailing list (bad name) and mail server to your own.
Also, override nagging to oneself.'''
+
+3) Run
+
+With the above, going to Gump's root and typing {{{gumpy}}} ought perform a reasonable test
run.
+
+Note: Currently no aspect of the workspace is building (or even updating) but that can be
worked on to improve it (w/ some creativity and/or help from infr@).
+
+= Integration Testing =
+
+Go to the '''test flavour''' on brutus (or your own local full Gump) and run :
+
+ {{{gumpy.sh -w ../minimal-workspace.xml ant [--debug]}}}
+
+to get a quick run. Once done, do:
+
+ {{{gumpy.sh -w ../gump.xml all [--debug]}}}
+

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message