Commit Graph
33 Commits
Author SHA1 Message Date
Adam Heath 4d87231961 BUG FIX: Fix coverage on $foo-test.jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954957 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 16:40:18 +00:00
Adam Heath 7ebc344daf Fix stand-alone tests target, broken when separated -test.jar logic was
added.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948327 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 05:52:03 +00:00
Adam Heath f2bfef6274 Create a main-jar macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935380 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:37 +00:00
Adam Heath 8724fdcba5 Don't define a fileset; instead separately define the extra source
selector, and the dir to scan.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935379 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:30 +00:00
Adam Heath 6e22a55e8b s/_src-extra-set/src-extra-files/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935378 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:25 +00:00
Adam Heath 8c3916223c In _src-extra-set, convert the implicit patternset list to a nested <or>
selector.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935377 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:21 +00:00
Adam Heath 0cea5e14c1 With <if> always available, _src-extra-set can be defined at the
top-level, without having to wait until some target is run.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935376 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:16 +00:00
Adam Heath e4e3b3a92d Always define the <if> task, not just after init has been called.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935375 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:12 +00:00
Adam Heath 6c27274238 Add sourcepathref to javadoc call.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918720 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:08:42 +00:00
Adam Heath 61a9b4881e It's been a rough ride, little ant and junit, but I'm glad you finally
decided to get along.

Here are the issues that I have discovered with junit forkmode=once.  If
you set showoutput=on, then you get the stdout/stderr from each test, as
it happens.  However, you don't get it nicely delineated.  Only a nested
<formatter> does that.  However, in forkonce mode, <formatter> will only
capture the stdout/stderr of the *first* test that happens to print
something to those streams; subsequent tests have the output stream
closed.  Setting printsummary="on" or "withOutAndErr" never shows test
case failures, so that option is right out.

So, the compromise, is to set showoutput="on", which shows stdout/stderr
output as it happens, then use a <formatter> to get test case result
data, including failures.  This means that the stdout/stderr will get
double printed, but only once.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915388 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 15:41:11 +00:00
Adam Heath f4d23fbaca Make tests and tests-cobertura use a macro for junit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912614 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 15:35:37 +00:00
Adam Heath e4fc814943 Fix both junits to actually always display output for all tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912613 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 15:35:13 +00:00
Adam Heath 09a343c38f Fix handling of stderr/stdout when running multiple tests when
forkmode=once.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912256 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 23:41:41 +00:00
Adam Heath 9ef56b79aa Delete cobertura.dat for each run, so that different runs don't overlap
each others line numbers.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904985 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:26:57 +00:00
Adam Heath 1537d8c471 Fix running of junit on standalone tests, when multiple tests are being
run.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904984 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:26:22 +00:00
Adam Heath 276cc7b501 Add a default-javadoc presetdef.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894038 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 01:01:39 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1b580b6746 Add a shared init target, used by prepare anad prepare-docs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894027 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:19:47 +00:00
Adam Heath 56dac0bf9e Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath 312d4bd8d7 Junit errors in the cobertura target now fail the run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892695 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:41:13 +00:00
Adam Heath 170bd71b65 Add support for generated java files to the coverage report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892172 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:04:33 +00:00
Adam Heath c748cad763 Add target for running the short tests underneath cobertura, and then
generating the coverage report.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892170 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:03:25 +00:00
Adam Heath 62ed2a3ac1 Use the built jar instead of the classes dir, so that any resources
added to the jar are available for the tests.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892167 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:01:03 +00:00
Adam Heath 48a7d8470e Add a target for per-component quick testing. Can only deal with tests
that can run standalone.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888851 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 16:05:33 +00:00
Adam Heath 5121722dd0 Add <if> support in build.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835630 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 23:12:07 +00:00
Andrew Zeneski 86764c01cd now including .groovy files in src set
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770073 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 05:30:16 +00:00
Adam Heath 403bf55548 prepare no longer removes build/lib.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711774 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 06:23:14 +00:00
Adam Heath 8389de37ee Handle the case if the src dir doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711141 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 00:16:04 +00:00
Adam Heath 830700d737 Remove extra space on jar target tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@709449 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 15:56:13 +00:00
Adam Heath 32601006b7 Fixed the same as 686027.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686034 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:48:42 +00:00
Adam Heath 36b0cdafa2 Bah, forgot to save this before checking in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:10:34 +00:00
Adam Heath 7e3c93862c Slight tweak, so that ofbiz.home.dir is defined by macros.xml, so it
is available in more places.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681933 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:27:49 +00:00
Adam Heath 18391f98a9 The build.xml files are now much smaller and simpler; they reuse a
few global definitions.  1585 lines removed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672657 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 18:39:36 +00:00