Commit Graph

30 Commits

Author SHA1 Message Date
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
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 2358827122 Make AntUnitListener's aware of the Project instance executing the next test target
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@645799 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 08:57:39 +00:00
Kevin Jackson cfbdfdedf7 -bugzilla #43466
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@581771 13f79535-47bb-0310-9956-ffa450edef68
2007-10-04 04:13:24 +00:00
Jan Materne 5f058a6a19 typo
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@574857 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 09:14:54 +00:00
Jan Materne 6542c9233b * Organize imports
* typos
* AntUnit: local "orig" was never read
* AntUnit: document "not read" local variable lc
* AssertionFailedException: add generated serialVersionUID

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@574855 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 09:09:50 +00:00
Peter Reilly 8254b09bb9 Change firing of starttest event.
Original code assumed that a targetstart event
would always happen. However, this is not the case
if the target depends on a SetUp target that fails.
In this case the resultant xml result file was malformed.
This change always fires a starttest event, matching
the endtest event which is always send (from a finally block).


git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@568703 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 17:07:58 +00:00
Matthew Jason Benson 9cd4d79bd7 Fix failure by making each test execute in its own Project just like we said.
This is a little kludgy, but the tests pass.
Also did some javadoc'ing and cleanup.


git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@463002 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 22:17:47 +00:00
Matthew Jason Benson a05d5ff22d set all properties by calling initProperties(). System props were missing.
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@449787 13f79535-47bb-0310-9956-ffa450edef68
2006-09-25 19:40:23 +00:00
Matthew Jason Benson 3063581238 Differentiate between no RCs specified and no matching Resources.
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@448264 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 17:05:25 +00:00
Stefan Bodewig 6002fbef8b try to make more sense
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@442304 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 19:46:57 +00:00
Jan Materne 249b65bafb typo
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@442117 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 07:41:31 +00:00
Stefan Bodewig 2c58493f5a make sure we get the [antunit] banner in plainlistener
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@441847 13f79535-47bb-0310-9956-ffa450edef68
2006-09-09 19:44:17 +00:00
Stefan Bodewig 48df64c11f whitespace
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@437206 13f79535-47bb-0310-9956-ffa450edef68
2006-08-26 18:50:56 +00:00
Stefan Bodewig ebe4ec976a Add an errorProperty attribute, document failOnError attribute
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@437204 13f79535-47bb-0310-9956-ffa450edef68
2006-08-26 18:48:30 +00:00
Stefan Bodewig 77d58419c4 allow plainlistener to write reports to files
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@432741 13f79535-47bb-0310-9956-ffa450edef68
2006-08-18 21:59:15 +00:00
Stefan Bodewig 6d8263d69b <propertyset> support for <antunit>
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@426650 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 19:16:29 +00:00
Stefan Bodewig f8eb6f6815 'test' is not an AntUnit test target
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@425623 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 04:58:57 +00:00
Stefan Bodewig 059a6cfc99 fine tune resource collection support
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@425273 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 04:36:58 +00:00
Kevin Jackson 5b3d47a2df - add maven pom
- change to new license/notice style (added NOTICE)

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@424944 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 07:23:57 +00:00
Kevin Jackson f004d66837 Use ResourceCollections - integration tested, but not unit tested
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@424897 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 04:07:55 +00:00
Stefan Bodewig 32f08f3fa5 provide a bit more documentation
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@424603 13f79535-47bb-0310-9956-ffa450edef68
2006-07-22 16:56:01 +00:00
Steve Loughran 0d4d1d5680 -Fix the test to expect the failure that is now thrown on an error.
-added 'all' targets to the various testcase build files that run antunit against themselves (neat trick, huh?)
Gump should be working now...

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@412531 13f79535-47bb-0310-9956-ffa450edef68
2006-06-07 20:47:34 +00:00
Steve Loughran 9e21e1d5d3 1. typos in assertTask
2. ExpectFailure now does a substring check for the expectedMessage, not a simple exact match
3. AntUnit actually fails the build if the tests failed.

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@411613 13f79535-47bb-0310-9956-ffa450edef68
2006-06-04 22:34:30 +00:00
Stefan Bodewig bb23f0df31 Make log output available to test runs
git-svn-id: https://svn.apache.org/repos/asf/ant/sandbox/antlibs/antunit/trunk@209073 13f79535-47bb-0310-9956-ffa450edef68
2005-07-04 13:35:24 +00:00
Stefan Bodewig a052a4f9bf Add <antunit> task and a very basic test listener
git-svn-id: https://svn.apache.org/repos/asf/ant/sandbox/antlibs/antunit/trunk@171106 13f79535-47bb-0310-9956-ffa450edef68
2005-05-20 11:55:34 +00:00