Commit Graph

60 Commits

Author SHA1 Message Date
Brett Leslie Porter 5c48727b18 PR: MNG-978, 979, 964
Submitted by: Johnny R. Ruiz III
Reviewed by:  Brett Porter
added parameters printSummary, reportFormat, and useFile to configure the reporting format.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@293194 13f79535-47bb-0310-9956-ffa450edef68
2005-10-03 00:57:04 +00:00
Brett Leslie Porter d56d2c09c2 PR: MNG-855
Submitted by: Johnny R. Ruiz III
Reviewed by:  Brett Porter
documentation for surefire plugin


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@291483 13f79535-47bb-0310-9956-ffa450edef68
2005-09-25 22:54:34 +00:00
Emmanuel Venisse f86c48140b oops, sorry.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290974 13f79535-47bb-0310-9956-ffa450edef68
2005-09-22 16:23:13 +00:00
Emmanuel Venisse ebc406ab8e Add debug messages
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290972 13f79535-47bb-0310-9956-ffa450edef68
2005-09-22 16:04:16 +00:00
Emmanuel Venisse 5ec721cb29 Fix surefire classpath creation. plugin artifacts must be in classpath after project artifact.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290957 13f79535-47bb-0310-9956-ffa450edef68
2005-09-22 14:59:00 +00:00
Jason van Zyl 4aaabdbece o adding Test*.java to the default regexes for inclusion.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290866 13f79535-47bb-0310-9956-ffa450edef68
2005-09-22 00:28:18 +00:00
Brett Leslie Porter 96b7fe6353 PR: MNG-577, MNG-901
Submitted by: Johnny R. Ruiz III
Reviewed by:  Brett Porter
add XML reporter to the surefire plugin, and improve documentation.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@290042 13f79535-47bb-0310-9956-ffa450edef68
2005-09-19 01:48:39 +00:00
Brett Leslie Porter 9262d5171e PR: MNG-898
Submitted by: Magne Rasmussen
Reviewed by:  Brett Porter
Allow overriding classes/resources in tests.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@289354 13f79535-47bb-0310-9956-ffa450edef68
2005-09-16 00:58:58 +00:00
Kenney Westerhof a3eede2515 Removed unused MavenProject parameter.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@289178 13f79535-47bb-0310-9956-ffa450edef68
2005-09-15 08:33:42 +00:00
Vincent Massol 3b1f894e37 MNG-813: Expose the m2 local repository location to the junit tests using the "localRepository" system property.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@265582 13f79535-47bb-0310-9956-ffa450edef68
2005-08-31 20:49:49 +00:00
Brett Leslie Porter 4e79a1aa80 forgot why they were wrapped in an array list...
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@233443 13f79535-47bb-0310-9956-ffa450edef68
2005-08-19 07:11:44 +00:00
Brett Leslie Porter cc276e2e2a forgot the import
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@233441 13f79535-47bb-0310-9956-ffa450edef68
2005-08-19 06:45:34 +00:00
Brett Leslie Porter 3c460805af PR: MNG-746
allow naming of TestCase as well as Test


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@233437 13f79535-47bb-0310-9956-ffa450edef68
2005-08-19 06:22:20 +00:00
Kenney Westerhof 59128be85b Making sure there is always a filter present, to prevent malfunctioning
plugin configuration code disabling running any tests.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@232500 13f79535-47bb-0310-9956-ffa450edef68
2005-08-13 14:58:04 +00:00
Kenney Westerhof 2823fe4711 Solving MNG-711:
o Added a check in MavenProject.getArtifacts() to never return null,
  but an empty Set, since there's almost no checking.

o Added requiresDependencyResolution test to SurefirePlugin.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@230827 13f79535-47bb-0310-9956-ffa450edef68
2005-08-08 17:55:21 +00:00
Brett Leslie Porter ca13758311 fix directory for -Dtest=...
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219904 13f79535-47bb-0310-9956-ffa450edef68
2005-07-20 14:11:01 +00:00
Jason van Zyl f0c1975584 o need a File not a String now.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219903 13f79535-47bb-0310-9956-ffa450edef68
2005-07-20 14:06:32 +00:00
Brett Leslie Porter d56d3de13d utilise more sensible surefire directory battery
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219867 13f79535-47bb-0310-9956-ffa450edef68
2005-07-20 09:30:19 +00:00
Emmanuel Venisse 561e012256 Allow to define test to run from cli
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219453 13f79535-47bb-0310-9956-ffa450edef68
2005-07-18 04:31:51 +00:00
Emmanuel Venisse 6f62ddc456 [MNG-562] Add ignore failures
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@209803 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 14:53:06 +00:00
Emmanuel Venisse 267dcf5d02 [MNG-562] Implement -Dmaven.test.skip=true
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@209755 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 13:01:15 +00:00
Emmanuel Venisse 70a13f3f56 [MNG-510]. Fix classpath order.
Thanks to Kenney Westerhof

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@193164 13f79535-47bb-0310-9956-ffa450edef68
2005-06-23 15:22:57 +00:00
Brett Leslie Porter 6cd2e31078 refactoring of the resolveTransitiveDependencies call.
simplified by removing a bunch of duplicated code in addArtifacts - no need to merge, you have the full list. 
separated the original artifacts (dependency artifacts) from the resolved artifacts (getArtifacts)


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@191667 13f79535-47bb-0310-9956-ffa450edef68
2005-06-21 15:32:02 +00:00
Brett Leslie Porter 01e6c8daa6 PR: MNG-257
refactor artifact creation to all go through the factory, and assign the type handler from there.
Attach EJB client to the EJB artifact so that it is installed/deployed along with it.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@191096 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 06:49:57 +00:00
John Dennis Casey d2e1f3c975 o Adding support for <executions/>, which means multiple runs of the same goal/set-of-goals with different configs.
o Adding @phase declarations for those mojos that seem to be part of the main build, just for completeness
o Added two ITs, to test that <executions/> doesn't mess up the normal operation, and to test multi-execution for a goal.

Should resolve: MNG-172.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@190335 13f79535-47bb-0310-9956-ffa450edef68
2005-06-13 02:47:57 +00:00
Emmanuel Venisse 12cf74a46a git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188733 13f79535-47bb-0310-9956-ffa450edef68 2005-06-07 08:39:24 +00:00
Emmanuel Venisse 92a347519c Don't run surefire for pom project
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@188732 13f79535-47bb-0310-9956-ffa450edef68
2005-06-07 08:36:15 +00:00
Brett Leslie Porter f9360a13d9 test if properties were provided
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169498 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 17:00:09 +00:00
Brett Leslie Porter f0248e0084 PR: MNG-298
Submitted by: Vincent Massol
Reviewed by:  Brett Porter
set some system properties based on plugin configuration. At this point, they are not reverted afterwards...

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169497 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 16:53:59 +00:00
Brett Leslie Porter 14b9e9f347 remove default plugin versions from super POM, rely on discovery of releases. Write out the current version during bootstrap to force its usage (unfortunately enforcing it on other installs, however...)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@169484 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 15:04:06 +00:00
John Dennis Casey a58632b9dd Renamed Plugin.java, AbstractPlugin.java, PluginExecutionRe(quest|sponse) PluginExecutionException to Mojo*
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165238 13f79535-47bb-0310-9956-ffa450edef68
2005-04-29 00:12:09 +00:00
John Dennis Casey ab91b7f4c2 o Cleaned up field-level annotation support (especially descriptor extraction, generation, and building)
o Converted all "core" plugins (including maven-core-it-plugin) to use field-level annotations
o Removed generation of parameter descriptors for ${/#component.* param specifications.
o Added @readonly for parameters that cannot be overridden by user configuration (List override was dangerous here)
o Added validation against pom-derived configuration for @readonly parameters
o Fixed @parameter alias="" support...now configuration of the mojo instance actually will work with either the real param name or the alias. Would be nice to support multiple aliases, but that might require @alias annotations...
o Added [temporary?] support for null editable attributes for parameters, to support pre-built mojos from the repo.

Annotation support should be just about ready to go...


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165224 13f79535-47bb-0310-9956-ffa450edef68
2005-04-28 23:05:01 +00:00
Brett Leslie Porter 874a8c1245 add more use of ${} expressions, fix problem when } was not at end
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@164195 13f79535-47bb-0310-9956-ffa450edef68
2005-04-22 08:33:34 +00:00
Brett Leslie Porter b2e4433615 utilise the container for populating all mojo configuration, including expressions
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163947 13f79535-47bb-0310-9956-ffa450edef68
2005-04-15 04:52:31 +00:00
Brett Leslie Porter baca1f7841 make surefire and rest of m2 independent of repo layout
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163751 13f79535-47bb-0310-9956-ffa450edef68
2005-04-04 03:48:01 +00:00
Brett Leslie Porter c5d7cd804c convert surefire plugin to new execute()
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163663 13f79535-47bb-0310-9956-ffa450edef68
2005-03-22 13:40:14 +00:00
John Dennis Casey 4d1ca8da33 o Removed AuthenticationInfoProvider stuff
o Added ArtifactRepositoryFactory stuff to construct with AuthenticationInfo if possible.
o Added UserModelBuilder stuff for componentizing UserModel construction.
  -> DefaultUserModelBuilder has a configuration point 'userModelPath' which can redirect where it reads user.xml from (${user.home} is substitutable here).
o Added warning message to deployment plugin when deployment repo has no authentication info available.
o Added warning message for repos with null <id/> (auth info cannot be assigned here).
o Added a couple of debug-level messages for aid in debugging repo- and userModel-related problems.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163558 13f79535-47bb-0310-9956-ffa450edef68
2005-03-15 21:41:06 +00:00
Brett Leslie Porter a44b6f9726 flip pom format
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163511 13f79535-47bb-0310-9956-ffa450edef68
2005-03-10 01:35:25 +00:00
Brett Leslie Porter 72a993eea1 remove old code related to the previous goal structure
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163469 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 19:21:38 +00:00
Brett Leslie Porter 6c36fe6f71 add basic test dependency handling
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163466 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 09:41:55 +00:00
John Dennis Casey f32e88a2d5 o Added null check to the loop which adds classpath elements to the surefire test.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163232 13f79535-47bb-0310-9956-ffa450edef68
2004-11-03 23:31:37 +00:00
Jason van Zyl bdcd0670ed o accounting for a change i just made in maven-core
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163171 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 15:46:38 +00:00
Jason van Zyl c0a6388337 o active the new text file reports which capture any stack traces that
occur as well as stdout and std err

o there is a new parameter that is accepted so you can use a simplifed
  regex from the command line

  m2 surefire:test -D=test=FooTest

  is implicitly **/FooTest.java and the directory scanner is used

  so you can this to run a single test if you like or a set of tests:

  m2 surefire:test -Dtest=*Foo*

  is implicitly **/*Foo*.java

  You can also specify a comma separated list if you wish:

  m2 surefire:test -Dtest=*Foo*,*Bar*

  whic is implicitly **/*Foo*.java,**/*Bar*.java

  This just makes running a smaller set of tests easier while trying
  to pin point problems.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163120 13f79535-47bb-0310-9956-ffa450edef68
2004-09-20 03:14:22 +00:00
Brett Leslie Porter c13e8c7629 PR: MNG-74
remove maven.properties use everywhere except classworlds conf


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163024 13f79535-47bb-0310-9956-ffa450edef68
2004-09-02 12:34:19 +00:00
Emmanuel Venisse a28ad00561 - Use surefire 1.1
- Build failed now when we have failures in tests


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162842 13f79535-47bb-0310-9956-ffa450edef68
2004-06-27 13:24:13 +00:00
Jason van Zyl e5c7f6b808 o the classes directories are now aligned so the basedir is not needed.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162829 13f79535-47bb-0310-9956-ffa450edef68
2004-06-22 17:03:45 +00:00
Emmanuel Venisse f00f23e685 Use build directories as parameter.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162805 13f79535-47bb-0310-9956-ffa450edef68
2004-06-19 12:12:39 +00:00
Jason van Zyl 4948f63c70 o Ok, this set of changes has been tested against the integration tests in
maven-core-it and it is now a requirement that the integration tests be
  done before checking in any changes. They are not super rigourous but
  they do test the minimal functionality of compiling, processing resources
  and testing.

  I'm going to make another release this week and things should now be
  in a stable enough form to actually use m2 for the basics.

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162763 13f79535-47bb-0310-9956-ffa450edef68
2004-06-16 02:51:37 +00:00
Jason van Zyl 8be8744b31 *** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162753 13f79535-47bb-0310-9956-ffa450edef68
2004-06-14 20:47:08 +00:00
Jason van Zyl 26f67a6c73 o correcting @tags from feedback
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162747 13f79535-47bb-0310-9956-ffa450edef68
2004-06-14 15:13:12 +00:00