Commit Graph

261 Commits

Author SHA1 Message Date
Stefan Bodewig 95b8daf2a7 allow passing references from antunit task to tests. PR 49168. Submitted by Jason Trump
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@939555 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 04:25:04 +00:00
Stefan Bodewig 01c387ae3f whitespace
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@909330 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 10:09:05 +00:00
Stefan Bodewig 9e26f039da use built-in POM mechanism of common/m2.xml
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@909328 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 10:07:17 +00:00
Nicolas Lalevee 96347e9cd7 Add a fail task that makes a test case fail if no condition is provided or if the provided one is evaluated to false
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@829913 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 19:25:01 +00:00
Nicolas Lalevee 2e0ffe0ee8 fix: assertPropertyContains was not checking the value of the property but the name of the property.
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@826221 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 10:41:04 +00:00
Stefan Bodewig fa15dbd298 Ant's Bugzilla issue 39492 applies to AntUnit as well. Properly escape XML in stacktraces
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@796145 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 05:03:02 +00:00
Scokart Gilles 3176f752cb clean warnings
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@786662 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 20:46:16 +00:00
Scokart Gilles 718a09bd6e organize import
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@768327 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 15:02:42 +00:00
Scokart Gilles ef0dff3aad Report properly BuildException generated when parsing antunit script from Junit4
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@758630 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 13:32:52 +00:00
Scokart Gilles 1d3f040ac8 Minimal pom helping to install latest antunit version on a maven repository
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@758576 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 10:08:19 +00:00
Stefan Bodewig 6c62da28fa remove redundant boilerplate code from NOTICE files
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@756744 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 20:24:39 +00:00
Scokart Gilles c40850f362 handle more completely junit4 suites
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@745628 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 19:47:08 +00:00
Stefan Bodewig 54b8924c02 eol-style
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@744863 13f79535-47bb-0310-9956-ffa450edef68
2009-02-16 08:37:54 +00:00
Scokart Gilles f5e36a2c4e Add error handling in the initalisation of the project
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@744468 13f79535-47bb-0310-9956-ffa450edef68
2009-02-14 10:32:46 +00:00
Stefan Bodewig 9fafac9d17 missing license headers
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@744127 13f79535-47bb-0310-9956-ffa450edef68
2009-02-13 14:39:29 +00:00
Scokart Gilles 5220af86b5 Add Junit3 and Junit4 adapters allowing to launch AntUnit script from JUnit runner (I still have some weakness to fix in the junit4 runner)
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@743906 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 22:21:28 +00:00
Scokart Gilles 0b6bc826c1 Refactoring : - Move active/inactive state managment from AntUnitScriptRunner to AntUnit - Split AntUnitExecutionPlatform into a ProjectFactory (required to parse the script) and AntUnitExceutionNotifier (required to run the script) - Move the invocation of the sequence suiteSetUp, test targets suiteTearDown from AntUnit to AntUnitScriptRunner
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@740452 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 21:13:59 +00:00
Scokart Gilles cf53bf4bf5 Give access to project name so that it can be used in junit adapter
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@739564 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 14:36:57 +00:00
Scokart Gilles 6fd044277d remove unsightly double catch
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@739408 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 21:00:28 +00:00
Stefan Bodewig cd5ca3a0b8 sync docs with antlib
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@738428 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 09:59:28 +00:00
Stefan Bodewig 7ea805f7fb make assertResource(Doesnt)Contain(s) casesensitive flag do something useful
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@738426 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 09:55:10 +00:00
Stefan Bodewig 0505298464 make assertPropertyContains casesensitive flag do something useful
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@738418 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 09:44:06 +00:00
Stefan Bodewig 66b173ace0 untabify
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@738367 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 05:10:54 +00:00
Scokart Gilles 7451331ff7 Finally extract AntUnitScriptRunner (I have also added assertion validating the proper sequence of method invocation)
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@738248 13f79535-47bb-0310-9956-ffa450edef68
2009-01-27 21:18:22 +00:00
Scokart Gilles a4f26932b0 Decoupling AntUnitScriptRunner from the AntUnit task by introducing AntUnitExecutionPlatform interface
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@738222 13f79535-47bb-0310-9956-ffa450edef68
2009-01-27 20:18:31 +00:00
Scokart Gilles 0f2b8d63b8 merge the projectHandler and the AntScriptRunner in order to prepapre a class reusable by a junit runner
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@738204 13f79535-47bb-0310-9956-ffa450edef68
2009-01-27 19:57:07 +00:00
Stefan Bodewig 8d5082b5f3 English spelling of actif
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@737688 13f79535-47bb-0310-9956-ffa450edef68
2009-01-26 13:16:12 +00:00
Scokart Gilles 8a3eac1d35 isolate project references to prepare extraction of AntUnitScriptRunner
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@737379 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 15:23:02 +00:00
Scokart Gilles 5e5b863cb9 add test that fails if antunit doesn't support io demux
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@737355 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 13:05:51 +00:00
Scokart Gilles 566e104cb2 move more code in AntUnitScriptRunner
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@736794 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 21:06:08 +00:00
Scokart Gilles 4765179342 indent the code
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@736776 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 20:21:10 +00:00
Scokart Gilles 07f9485f4d extract script 'scanning' and regroup methods in a class
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@736770 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 20:05:28 +00:00
Scokart Gilles aeba157d73 move more code in startSuite and endSuite
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@736758 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 19:50:33 +00:00
Scokart Gilles e006c215fd extract suiteSetup, suiteTearDown and target execution
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@736754 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 19:30:59 +00:00
Scokart Gilles aba154292a separate test target identification from test target execution (prepare further refactoring to extract part reusable in junit adapter)
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@736745 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 19:06:02 +00:00
Scokart Gilles eef127ec79 refactor duplicated code
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@735525 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 19:23:30 +00:00
Scokart Gilles 6d3eaa3685 expectfailure report the original build exception chained when failing
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@718551 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 10:58:47 +00:00
Stefan Bodewig b9a640b0b0 announce release
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@699225 13f79535-47bb-0310-9956-ffa450edef68
2008-09-26 08:54:07 +00:00
Stefan Bodewig 30b53aff98 Add maven-metadata
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@699221 13f79535-47bb-0310-9956-ffa450edef68
2008-09-26 08:48:28 +00:00
Stefan Bodewig 1b594c47c9 open for new development
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@697005 13f79535-47bb-0310-9956-ffa450edef68
2008-09-19 09:23:06 +00:00
Stefan Bodewig 21eb3ef586 prepare for release
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@697003 13f79535-47bb-0310-9956-ffa450edef68
2008-09-19 09:18:30 +00:00
Stefan Bodewig 39591b115e bump version
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@689355 13f79535-47bb-0310-9956-ffa450edef68
2008-08-27 04:25:32 +00:00
Stefan Bodewig 4added682f bump a few versions
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@689353 13f79535-47bb-0310-9956-ffa450edef68
2008-08-27 04:12:43 +00:00
Stefan Bodewig b015abd416 add a resourceDoesntContain assertion
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@688099 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 15:33:21 +00:00
Stefan Bodewig 7d90c2b1a0 document assertResourceContains
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@688096 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 15:29:46 +00:00
Stefan Bodewig 81a6051f78 Log properties in xmllistener, Submitted by David Jackman, PR 43614
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@645897 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 13:13:20 +00:00
Stefan Bodewig 5481b97906 Document suiteSetUp and suiteTearDown
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@645890 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 13:01:45 +00:00
Stefan Bodewig ed30b0142c bookkeeping
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@645887 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 12:54:49 +00:00
Stefan Bodewig 0d488d0faf add suiteSetUp and suiteTearDown targets, submitted by David jackman, PR: 43475
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@645886 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 12:52:42 +00:00
Stefan Bodewig cc4c0a9083 Add logging of messages to xmllistener, based on code submitted by David Jackman
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@645841 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 10:44:46 +00:00