Commit Graph

70 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
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 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 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
Stefan Bodewig f78bb6947e Add logging of messages to plainlistener, based on code submitted by David Jackman
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@645829 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 10:30:44 +00:00
Stefan Bodewig 70c430e51c Provide infrastructure for Plain- and XMLListener to capture log output
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@645822 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 10:07:08 +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
Stefan Bodewig 3407316623 new assertDoesntMatch assertion, bugzilla issue 43639, submitted by David Jackman
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@601404 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 16:41:42 +00:00
Stefan Bodewig 98eab64066 assertMatches casesensitive attribute has the wrong default, bugzilla issue 43639, Submitted by David Jackman
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@601402 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 16:37:14 +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
Jan Materne 3473e654d9 code clean up
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@574851 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 08:56:12 +00:00
Jan Materne 066c175333 New Failure Listener, like the new one for JUnit.
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@574848 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 08:49:57 +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
Kevin Jackson a43c4dca51 -resource may not be a file
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@537549 13f79535-47bb-0310-9956-ffa450edef68
2007-05-13 04:07:41 +00:00
Kevin Jackson da212b721b -add new macro based on resourcecontains
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@537346 13f79535-47bb-0310-9956-ffa450edef68
2007-05-12 06:11:04 +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
Peter Reilly a3bc6e04fe add assertMatches assertion
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@451040 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 22:12:58 +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 3256d9412f add logcontent typedef and doco.
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@449083 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 20:48:20 +00:00
Matthew Jason Benson 24824acda6 add a new logcontent resource and a test
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@449047 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 18:43:25 +00:00
Matthew Jason Benson e5a28cd3c5 cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@449000 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 17:05:12 +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
Matthew Jason Benson 1abf65b02e Closing outputStream
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@448244 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 15:52:56 +00:00
Stefan Bodewig ad36e20222 Add location information
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@442851 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 05:26:20 +00:00
Stefan Bodewig ca2564da9b suppress backtraces for assertions
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@442308 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 19:51:30 +00:00
Stefan Bodewig d8a25af15e Add location-aware constructor
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@442307 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 19:48:23 +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 577a3033bf Add some useful information to the reports
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@441848 13f79535-47bb-0310-9956-ffa450edef68
2006-09-09 19:44:57 +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 f0fd5ca05a make XML report a bit prettier
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@433519 13f79535-47bb-0310-9956-ffa450edef68
2006-08-22 05:00:55 +00:00
Stefan Bodewig 94670dc30a improve testsuite-name attribute in XML report
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@433516 13f79535-47bb-0310-9956-ffa450edef68
2006-08-22 04:55:07 +00:00
Stefan Bodewig 06778bc504 decouple antlib from ant-junit.jar
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@433144 13f79535-47bb-0310-9956-ffa450edef68
2006-08-21 04:06:47 +00:00
Stefan Bodewig ecc39c666a move the listeners to a separate package
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@433143 13f79535-47bb-0310-9956-ffa450edef68
2006-08-21 04:01:26 +00:00
Stefan Bodewig 89c2737633 XML listener, mostly complete. I intend to add documentation and stylesheets that allow junitreport to work on the report format later.
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@432873 13f79535-47bb-0310-9956-ffa450edef68
2006-08-19 20:33:08 +00:00
Stefan Bodewig aede6a63ed need to make extension configurable
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@432866 13f79535-47bb-0310-9956-ffa450edef68
2006-08-19 19:34:26 +00:00
Stefan Bodewig c4413d2f01 cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@432865 13f79535-47bb-0310-9956-ffa450edef68
2006-08-19 19:27:50 +00:00
Stefan Bodewig fe56008d7b factor out some code that may come handy when implementing the XML listener
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@432863 13f79535-47bb-0310-9956-ffa450edef68
2006-08-19 19:13:42 +00:00
Stefan Bodewig 11115b90e6 make report file name prettier
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@432860 13f79535-47bb-0310-9956-ffa450edef68
2006-08-19 18:56:24 +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