maven2 surefire plugin - how to pass args to surefire on command line

2007-07-25 Thread Si_Simon
The surefire plugin has an that can be used to pass params to the JVM that runs it (debugging options). So when I run maven from the command line, how do I pass options to to surefire using the bash shell? This is tricky because I need to pass something to maven in which maven in turns passes

Maven runs surefire plugin for testing by default. How to change this?

2007-10-30 Thread Kalyan Akella
Hi, Recently, I developed a Java-based maven plugin intended to run in the test phase of the maven build instead of the standard surefire-plugin. It has just one goal, 'test'. When I configured my project's POM to include my plugin for the testing phase and made sure the POM d

Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released --> Ref #[1MFmI5QXPR0Vgmu]

2008-02-06 Thread announcement
Hello, Thank you for contacting NetZero. This is an automated reply and no further response will be sent. Please do not reply to this email. If you are looking for help here are some useful links: * Online NetZero Help Center: http://www.netzero.com/support * Online Billing and Account Ce

Re: [ANN] Maven Surefire Plugin 2.4.2 for Maven 2 Released --> Ref #[1MFmWCOPjD0MEmu]

2008-02-20 Thread announcement
Hello, Thank you for contacting NetZero. This is an automated reply and no further response will be sent. Please do not reply to this email. If you are looking for help here are some useful links: * Online NetZero Help Center: http://www.netzero.com/support * Online Billing and Account Ce

Re: Is it possible to make some delaying between surefire plugin executions?

2008-02-21 Thread Dan Fabulich
vetalok wrote: 1. Is it possible to add some delaying between few execution phases of surefire plugin, e.g 10 seconds (hsqldb says: ".lck file is locked by another process")? Not really. Much easier to add a "Thread.sleep()" line to your tests. 2. Is it possibl

Re: Is it possible to make some delaying between surefire plugin executions?

2008-02-24 Thread Johan Lindquist
ution phases of surefire plugin, e.g 10 seconds (hsqldb says: ".lck file is locked by another process")? Not really. Much easier to add a "Thread.sleep()" line to your tests. 2. Is it possible to run my surefire executions in the same JVM across all executions?. You'

There seems to be a mistake in the documentation - MAVEN SUREFIRE PLUGIN

2019-07-19 Thread Moina Farheen
Hi, I am a beginner and just started to learn maven for my project. I was reading about surefire plugin on the site and found this - image.png As I see here, there are 3 goals in this plugin but why does it say there "Surefire Report Plugin only has one goal" Have I misunderstood?

Re: Help[please]: maven-surefire-plugin with TestNG group dependencies not working....

2014-02-20 Thread Jeff
g testng:6.8.7 and maven-surefire-plugin:2.16. > > The first test class has the following annotation on the test *class* which > should be inherited by the test methods: > > * @Test(groups={ "functional" })* > * public class FuncTest{...}* > > on the

maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-10-05 Thread Farrukh Najmi
Sometime in the recent past I noticed that when I run my projects junit tests via maven-surefire-plugin I no longer see the log messages or println statements sent to System.err until *after* the test completes. Since these message are important while debugging a test I need to see them as

Re: maven-surefire-plugin - 2.0-beta-2-SNAPSHOT anyone send to me ?

2005-11-18 Thread Brett Porter
add a pluginRepository with: http://snapshots.maven.codehaus.org/maven2 to your settings.xml file in a profile. it should be downloaded. On 11/18/05, Pete <[EMAIL PROTECTED]> wrote: > Would any kind person email the .JAR and .POM etc for the > 2.0-beta-2-SNAPSHOT version of sur

Re: maven-surefire-plugin - 2.0-beta-2-SNAPSHOT anyone send to me ?

2005-11-18 Thread Pete
Unfortunately no one has deployed the latest org.apache.maven.plugins maven-surefire-plugin 2.0-beta-2-SNAPSHOT version to http://snapshots.maven.codehaus.org/maven2 So if someone could deploy or send it tom I would be most grateful. cheers On 18/11/05

Re: maven-surefire-plugin - 2.0-beta-2-SNAPSHOT anyone send to me ?

2005-11-18 Thread Brett Porter
I just realised what you wrote... why 2.0-beta-2-SNAPSHOT? Why not 2.0? On 11/18/05, Pete <[EMAIL PROTECTED]> wrote: > Unfortunately no one has deployed the latest > > org.apache.maven.plugins > maven-surefire-plugin > 2.0-beta-2-SNAPSHO

Re: maven-surefire-plugin - 2.0-beta-2-SNAPSHOT anyone send to me ?

2005-11-18 Thread Pete
est > > > > org.apache.maven.plugins > > maven-surefire-plugin > > 2.0-beta-2-SNAPSHOT > > > > version to http://snapshots.maven.codehaus.org/maven2 > > > > So if someone could deploy or send it tom I would be most grateful. &

Problem using maven surefire plugin in "pertest" fork mode in Windows environment

2006-03-20 Thread Davide Zerbetto
Hi! I have a problem using maven surefire plugin in "pertest" fork mode in Windows environment (in Linux it works properly). Tests use DBUnit 2.1: the db is a HSQLDB file. Here below a fragment of my pom.xml: org.apache.maven.plugins maven-suref

maven-surefire-plugin - turn off for "test", turn on for "integration-test"?

2006-07-27 Thread Chris Wall
Hello! I would like to turn off maven-surefire-plugin during the "test" phase (so, no unit testing at all), and turn on maven-surefire-plugin for the "integration-test". Basically my source is a test webapp, and my tests are integration tests. While playing around with m

Maven Surefire plugin gives 'connection refused' error when running JUnit Test Case

2006-10-18 Thread Mohan Gopal
Hi, I am running my web project with maven. It compiles successfully. However when I test it using 'mvn test' it gives 'connection refused error'. Here is the stack trace: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method)

Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test'

2007-04-19 Thread Ramesh Babu Pokala - TLS, Chennai
DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator

Base class for tests not being found by junit 4.4 via surefire plugin

2008-04-15 Thread Farrukh Najmi
This may be a junit questions rather than a maven question I have a project where I have under the src/test tree a class called server.common.ServerTestBase that serves as a base classfor other test classes. For some reason this class is not found during test execution. Any idea what coul

RE: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-15 Thread Brian E. Fox
iblio repo won't help if you aren't able to get to the main repo. -Original Message- From: Tonté Pouncil [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 12:16 PM To: users@maven.apache.org Subject: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4

Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-15 Thread Wayne Fay
; -Original Message- > From: Tonté Pouncil [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 15, 2008 12:16 PM > To: users@maven.apache.org > Subject: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 > -- NEED HELP > > > I just downloaded Maven

Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-16 Thread Tonté Pouncil
s), > central (http://repo1.maven.org/maven2), > apache.org (http://people.apache.org/repo/m2-snapshot-repository) > for project org.apache.maven.plugins:maven-surefire-plugin

Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-16 Thread Tonté Pouncil
po1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/maven/plug

Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-16 Thread Tonté Pouncil
AM cc Subject Please respond to Re: Maven 2.0.9 complains it can't "Maven Users

Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-16 Thread Tonté Pouncil
Users download maven-surefire-plugin List" 2.4.2 -- NEED HELP <[EMAIL PROTECTED]

Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-16 Thread Dennis Lundberg
est] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2 /maven-surefire-plugin-2.4.2.pom Downloading: http://172.18.10.165 /svn-repos/org/apache/maven/plugins/maven-surefire-plu

Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-16 Thread Wayne Fay
Subject > Please respond to Re: Maven 2.0.9 complains it can't > "Maven Usersdownload maven-surefire-plugin > List" 2.4.2 -- NEED HELP > <[EMAIL PROTECTED] > he.org>

RE: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-16 Thread Brian E. Fox
Users List Subject: Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP I see the url you are talking about, but I don't know how to fix it as the URL is being build by maven. The only URL I have defined are in show in the at the bottom of the maven out put b

Re: Maven 2.0.9 complains it can't download maven-surefire-plugin 2.4.2 -- NEED HELP

2008-04-17 Thread Tonté Pouncil
cc Subject Please respond to Re: Maven 2.0.9 complains it can't "Maven Users download maven-surefire-plugin

how to redirect the system.out into test report in running maven-surefire-plugin

2008-11-12 Thread sean.chen(陈思淼)
I use use System.out.println to output infomation to the console, when I run mvn test, I know the surefire can include all the system.out information,just like this:

Re: How run test with surefire plugin which resides in a other project ?

2009-04-05 Thread Dan Tran
est project. But at the point the surefire plugin is called, maven > is busy with the my Web project to create the final WAR. > How can I refer to test classes located in the other Test project? > > This is a snippit of my pom.xml: > (note: this TestDateUtilit

Re: maven2 surefire plugin - how to pass args to surefire on command line

2007-07-27 Thread Thorsten Heit
Hi, This is what I want to pass as the surefire argLine param --- -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y ,address=1824 --- Right now I have this hard coded in the pom as: -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,serv

Re: Maven runs surefire plugin for testing by default. How to change this?

2007-10-30 Thread Tim Kettler
Hi, as Brett told you on the dev list, just use the skip parameter to disable surefire execution. The surefire plugin is bound to the lifecycle by the default packagings and can't be removed. -Tim Kalyan Akella schrieb: > Hi, > > Recently, I developed a Java-based maven plugin i

Re: There seems to be a mistake in the documentation - MAVEN SUREFIRE PLUGIN

2019-07-19 Thread Tibor Digana
rk around for SUREFIRE-2 <https://issues.apache.org/jira/browse/SUREFIRE-257> On Fri, Jul 19, 2019 at 2:26 PM Moina Farheen wrote: > Hi, > > I am a beginner and just started to learn maven for my project. I was > reading about surefire plugin on the site and found this - &g

Re: There seems to be a mistake in the documentation - MAVEN SUREFIRE PLUGIN

2019-07-24 Thread Moina Farheen
t; > On Fri, Jul 19, 2019 at 2:26 PM Moina Farheen > wrote: > > > Hi, > > > > I am a beginner and just started to learn maven for my project. I was > > reading about surefire plugin on the site and found this - > > > > image.png > > > > As

Re: There seems to be a mistake in the documentation - MAVEN SUREFIRE PLUGIN

2019-07-26 Thread Tibor Digana
Hello Moina, I have reported this issue in JIRA https://issues.apache.org/jira/browse/SUREFIRE-1684 Cheers Tibor17 On Fri, Jul 19, 2019 at 2:26 PM Moina Farheen wrote: > Hi, > > I am a beginner and just started to learn maven for my project. I was > reading about surefire plugin

Re: There seems to be a mistake in the documentation - MAVEN SUREFIRE PLUGIN

2019-08-22 Thread Moina Farheen
t; Hi, > > > > I am a beginner and just started to learn maven for my project. I was > > reading about surefire plugin on the site and found this - > > > > image.png > > > > As I see here, there are 3 goals in this plugin but why does it say there > >

maven-surefire-plugin does not fail build if TestNG and JUnit47 are used

2014-09-11 Thread David Hoffer
I have a module where maven-surefire-plugin (2.10) is configured to use TestNG and JUnit47. The former has several tests that all succeed and the later has two tests that fail. However the build succeeds. How can I configure surefire so the build fails if either have failures which is the

maven-surefire-plugin to be defined for the unit tests to be run

2014-11-06 Thread Alexandre BRETET
Hi good morning all, I have asked this question on stackoverflow two days ago about the necessity of defining / overriding the maven-surefire-plugin. http://stackoverflow.com/questions/26694974/why-maven-surefire-plugin-needs-to-be-defined-for-the-tests-to-be-run I didn't get any answer s

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-10-05 Thread Wayne Fay
> Can any one tell me how I to get back the old behavior where all log > messages and output to System.err is displayed on the console as it happens > in real time? Did you check the documentation for the surefire plugin? http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-10-05 Thread Kristian Rosenvold
Den 05.10.2011 18:26, skrev Farrukh Najmi: Sometime in the recent past I noticed that when I run my projects junit tests via maven-surefire-plugin I no longer see the log messages or println statements sent to System.err until *after* the test completes. Since these message are important

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread farrukh_najmi
os/asf/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-redirect-output* > > > Kristian > > * > -- View this message in context: http://maven.40175.n5.nabble.com/maven-surefire-plugin-redirecting-System-err-and-showing-delayed-output-from-junit-tes

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread farrukh_najmi
Note that I have tried this with both maven-surefire-plugin 2.9 and 2.10 and there is no difference. -- View this message in context: http://maven.40175.n5.nabble.com/maven-surefire-plugin-redirecting-System-err-and-showing-delayed-output-from-junit-tests-tp4873335p4961409.html Sent from the

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread Kristian Rosenvold
You would have to try version 2.8.1; I will take a look at this for 2.11. Kristian to., 03.11.2011 kl. 08.38 -0700, skrev farrukh_najmi: > Note that I have tried this with both maven-surefire-plugin 2.9 and 2.10 and > there is no difference. > > -- > View this message in c

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread Kristian Rosenvold
System.err will always be redirected in the forked VM, there is no setting to avoid that. But the output should be piped through to the surefire-plugin and output from there instead, which should be identical (but quite obviously isn't totally the same ATM.) If you want this fixed you s

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread farrukh_najmi
, FAILED messages on the console. maven-surefire-plugin version did not seem to make any different with 2.8, 2.9, 2.10. I did not try 2.8.1. As you can gather the scenario is rather complex and I do not have time to make a reproducable test case. Should I still file an issue? I am not sure whether the

Seam with Maven2 WAS: + JBoss Embedded EJB3 and Surefire Plugin Maven 2 PROBLEM+

2006-06-12 Thread Steve Lewis
Marco Mistroni wrote: i have anohter app (that uses seam) that has been tested using Is that other app, that uses Seam also using Maven2 by any chance? http://jira.jboss.com/jira/browse/JBSEAM-225 It looks like there will be no official Maven 2 jar for the ibiblio repository. This is my f

Re: maven-surefire-plugin - turn off for "test", turn on for "integration-test"?

2006-07-27 Thread Wendy Smoak
On 7/27/06, Chris Wall <[EMAIL PROTECTED]> wrote: I would like to turn off maven-surefire-plugin during the "test" phase (so, no unit testing at all), and turn on maven-surefire-plugin for the "integration-test". Basically my source is a test webapp, and my tests ar

RE: maven-surefire-plugin - turn off for "test", turn on for "integration-test"?

2006-07-27 Thread Chris Wall
Maven Users List Subject: Re: maven-surefire-plugin - turn off for "test", turn on for "integration-test"? On 7/27/06, Chris Wall <[EMAIL PROTECTED]> wrote: > I would like to turn off maven-surefire-plugin during the "test" phase > (so, no unit testing at

RE: maven-surefire-plugin - turn off for "test", turn on for "integration-test"?

2006-07-27 Thread Simon Kitching
classes it runs, then do that inside the section of the plugin main block, not the section: maven-surefire-plugin ... true ... false Because the additional execution inherits settings from the main one, you need to reset skip to false in the nested

RE: maven-surefire-plugin - turn off for "test", turn on for"integration-test"?

2006-07-27 Thread Chris Wall
ugins maven-surefire-plugin true surefire-it integration-test test false Result: [INFO] Scanning for projects... [INFO]

Re: maven-surefire-plugin - turn off for "test", turn on for"integration-test"?

2006-07-27 Thread Wendy Smoak
On 7/27/06, Chris Wall <[EMAIL PROTECTED]> wrote: Based on your recommendation I made the following update. Yet, the execution element's skip=false is not overriding the parent value. Both the unit test and integration test executions are being skipped. That fits with what I (vaguely) rememb

RE: maven-surefire-plugin - turn off for "test", turn on for"integration-test"?

2006-07-27 Thread Chris Wall
:[EMAIL PROTECTED] Sent: July 27, 2006 6:58 PM To: Maven Users List Subject: Re: maven-surefire-plugin - turn off for "test", turn on for"integration-test"? On 7/27/06, Chris Wall <[EMAIL PROTECTED]> wrote: > Based on your recommendation I made the following update. Y

Re: maven-surefire-plugin - turn off for "test", turn on for"integration-test"?

2006-07-27 Thread Wendy Smoak
On 7/27/06, Chris Wall <[EMAIL PROTECTED]> wrote: Goodness me. This... ... Works! Thanks everyone! Would you consider writing up what you've discovered for the wiki? Here's an 'Examples' page where it might fit: http://docs.codehaus.org/display/MAVENUSER/Examples (If by chance you don't ha

RE: maven-surefire-plugin - turn off for "test", turn on for"integration-test"?

2006-07-28 Thread Chris Wall
I sure will. Thanks Wendy. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: July 27, 2006 8:16 PM To: Maven Users List Subject: Re: maven-surefire-plugin - turn off for "test", turn on for"integration-test"? On 7/27/06, Chris Wall <[

Re: Maven Surefire plugin gives 'connection refused' error when running JUnit Test Case

2006-10-18 Thread Wayne Fay
From the stacktrace, it appears Cactus can't connect to your webserver to run its tests. Check your configuration of Cactus. Wayne On 10/18/06, Mohan Gopal <[EMAIL PROTECTED]> wrote: Hi, I am running my web project with maven. It compiles successfully. However when I test it using 'mvn test' i

Re: Maven Surefire plugin gives 'connection refused' error when running JUnit Test Case

2006-10-18 Thread Mohan Gopal
Thanks Wayne for the response. The cactus.properties is fine, as I can run the same JUnit test case at the command line and it runs fine. The problem is that maven cannot run it and I am surprized at it. I have made sure that cactus.properties file is present in test resources, resources, and a

Re: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test'

2007-04-19 Thread Wayne Fay
Is this a question? Or what? Consider reducing the quantity of your emails and increasing the quality. We'll all be a lot happier, as there will be fewer emails on the list and your problems are more likely to be solved. Wayne On 4/19/07, Ramesh Babu Pokala - TLS, Chennai <[EMAIL PROTECTED]> wr

Re: Base class for tests not being found by junit 4.4 via surefire plugin

2008-04-15 Thread Farrukh Najmi
The problem has gone away after I discovered taht a hibernate persistence.properties file under src/test tree was not being filtered and was therefor invalid. I am not 100% sure what to make of it. All I can guess is that junit 4.4 somehow ate some error message and made me think it was a Cla

Surefire plugin - is there a way to activate properties/profiles based on test results?

2008-10-06 Thread MDSTEELE
Hi all, I'm currently migrating an Ant script to Maven. In Ant, we have a phased JUnit build set up: First, run environment checks. If those pass, run system/integration and unit tests. Otherwise, run only unit tests. We're accomplishing this using a junit task which toggles a flag on tests

maven-surefire-plugin: run unit tests from classes in a jar, not a directory

2009-03-21 Thread Anshul Jaiswal
Folks, The surefire plugin currently supports automatically searching for unit testing classes from a directory. I was wondering if there is way for it to search for unit tests from a set of jar files instead of a directory. ie., a mechanism where I can specify a regex pattern for the package

[maven-surefire-plugin] message published by JUnit5-TestReporter does not appear in surefire report

2020-01-15 Thread Knoche, Heinz
Hello, I uploaded this simple project to illustrate my observation: https://github.com/gabalawi/junit5-testreporter Maybe someone could help me with clarifying - if there is a bug or lacking feature in the surefire plugin - or if I did not properly configure the surefire plugin - or if it is up

Re: maven-surefire-plugin does not fail build if TestNG and JUnit47 are used

2014-09-11 Thread Andreas Gudian
Hi, 2.10 is rather old. Could you try it with a more recent version such as 2.17? Am Donnerstag, 11. September 2014 schrieb David Hoffer : > I have a module where maven-surefire-plugin (2.10) is configured to use > TestNG and JUnit47. The former has several tests that all succeed a

Re: maven-surefire-plugin does not fail build if TestNG and JUnit47 are used

2014-09-12 Thread David Hoffer
; 2.10 is rather old. Could you try it with a more recent version such as > 2.17? > > > Am Donnerstag, 11. September 2014 schrieb David Hoffer : > > > I have a module where maven-surefire-plugin (2.10) is configured to use > > TestNG and JUnit47. The former has seve

RE: Seam with Maven2 WAS: + JBoss Embedded EJB3 and Surefire Plugin Maven 2 PROBLEM+

2006-06-12 Thread Mike Perham
TECTED] > Sent: Monday, June 12, 2006 1:53 PM > To: Maven Users List > Subject: Seam with Maven2 WAS: + JBoss Embedded EJB3 and > Surefire Plugin Maven 2 PROBLEM+ > > Marco Mistroni wrote: > > > i have anohter app (that uses seam) that has been tested using > >

Re: Surefire plugin - is there a way to activate properties/profiles based on test results?

2008-10-06 Thread Stephen Connolly
will not work the way you are trying to do it. You either need to use multiple executions of the surefire plugin (executions will be processed in the order in which they are defined, and if one fails, the rest will not be executed) or attach the surefire plugin to multiple phases (same as multiple

Re: maven-surefire-plugin: run unit tests from classes in a jar, not a directory

2009-03-21 Thread Brett Porter
53 AM, Anshul Jaiswal wrote: Folks, The surefire plugin currently supports automatically searching for unit testing classes from a directory. I was wondering if there is way for it to search for unit tests from a set of jar files instead of a directory. ie., a mechanism where I can specify a

Re: maven-surefire-plugin: run unit tests from classes in a jar, not a directory

2009-03-21 Thread Stephen Connolly
knowledge. > > - Brett > > > On 21/03/2009, at 7:53 AM, Anshul Jaiswal wrote: > > Folks, >> >> The surefire plugin currently supports automatically searching for unit >> testing classes from a directory. >> >> I was wondering if there is way for

Re: maven-surefire-plugin: run unit tests from classes in a jar, not a directory

2009-03-26 Thread Anshul Jaiswal
to implement my own test discovery algorithm. However, it's not clear to me how I can get surefire plugin to use my subclass instead of the Junit one. I guess I may have to create my own surefire-provider? I guess I can do that by starting with (or extending) the junit4 provider. Lets say I do

Re: maven-surefire-plugin: run unit tests from classes in a jar, not a directory

2009-03-26 Thread Anshul Jaiswal
that is private) to be able to implement my own test discovery > algorithm. > > However, it's not clear to me how I can get surefire plugin to use my > subclass instead of the Junit one. I guess I may have to create my own > surefire-provider? I guess I can do that by starting w

Re: maven-surefire-plugin: run unit tests from classes in a jar, not a directory

2009-03-27 Thread Frederic Camblor
Hi Anshul, This is pretty funny ... I wondered the same questions 2 weeks ago :-) ... And I think I can answer since while reading surefire plugin source code, I sadly saw use of directory test suite is hardcoded in SurefirePlugin.constructSurefireBooter() (search use of string

maven-surefire-plugin 2.5 with POJO test provider :: public int test* methods are not called.

2010-01-28 Thread Menelaos Perdikeas
I am using maven-surefire-plugin 2.5 with POJO tests (JDK 1.4 assert). Though the documentation at: http://maven.apache.org/plugins/maven-surefire-plugin/usage.html states that : "They [POJO Tests] behave in the same way, running all test* methods that are public in the class, but th

Maven plugin snapshots (was: maven-surefire-plugin - 2.0-beta-2-SNAPSHOT anyone send to me ?)

2005-11-18 Thread fabrice . belingard
18/11/2005 10:11 cc VeuillezObjet répondre à maven-surefire-plugin - Maven Users List

surefire plugin - test a specified method only instead of a specified class using the test parameter

2009-05-03 Thread Konstantinos Karadamoglou
Hello all, I am new to maven and surefire plugin. Recently I joined a new team which uses maven as its main build tool. The code repository includes a bunch of integration tests which are developed on junit 3 (no annotations). Due to the fact that each test method takes a long time to complete

surefire 2.4.2 fixes manifest issue (was Re: [ANN] Maven Surefire Plugin 2.4.1 for Maven 2 Released)

2008-02-21 Thread Haroon Rafique
On Feb 7 at 6:01pm, DF=>Dan Fabulich <[EMAIL PROTECTED]> wrote: DF> [..snip..] DF> DF> Ah, hearing that makes me strongly suspect that this is SUREFIRE-445 and DF> SUREFIRE-451. DF> DF> http://jira.codehaus.org/browse/SUREFIRE-445 DF> http://jira.codehaus.org/browse/SUREFIRE-451 DF> DF> Thanks

Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-07-18 Thread Larry Shatzer, Jr.
It appears there is something odd between Maven 2.2.1 and Maven 3.0.3 when the cobertura plugin runs, and its reading of the Surefire plugin configuration. Ideally I would only use JUnit or TestNG, and this would not be a problem. However, we are using TestNG exclusively, and wanted to introduce a tool th

How do you specify that only a given execution id of the surefire plugin should run?

2012-03-11 Thread Matthew Adams
Hi all, Familiar problem:  I've got TestNG & JUnit4 tests in the same project, and I'm employing the strategy described at http://blog.matthewadams.me/2012/03/running-testng-junit-4-tests-in-same.html which appears to be common around these here parts.  Bear with me as I lead up to my problem.

Unexpected and not-intentional switching of thread during a test method execution by maven-surefire-plugin

2012-07-26 Thread Arata Yamamoto
Dear group, I would like to know whether the maven-surefire-plugin has been designed to use multi threads automatically if possible during a test method execution? (Please allow me to remind that I'm using default setting of maven-surefire-plugin other than include and exclude optional param

Re: surefire plugin - test a specified method only instead of a specified class using the test parameter

2009-05-03 Thread Wayne Fay
> Do you know if surefire allows to explicitly test one method only? Is there > a way to achive that at all? Put each of your tests into different classes, with one method each. Or write an Ant script or something to do this, and just let Maven do the compile etc, then you run the test manually.

Re: surefire plugin - test a specified method only instead of a specified class using the test parameter

2009-05-03 Thread Frederic Camblor
Hi Kostas, As Wayne answered, this would rather be a Junit question than a maven question ;-) With junit 3, you can override the "public void run(TestResult)" : inside this method, the getName() method will return the current "test name" which corresponds to the test method to execute for the cur

Re: How do you specify that only a given execution id of the surefire plugin should run?

2012-03-11 Thread Kristian Rosenvold
This is undocumented, un-intentional and mostly un-nice. Run with forkMode=always, and surefire will only fork when there are tests to run. Kristian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional com

Re: Unexpected and not-intentional switching of thread during a test method execution by maven-surefire-plugin

2012-07-26 Thread Wayne Fay
> Maven version 3.0.1 > maven-surefire-plugin version 2.11 > I haven't set other than exclude and include optional parameters of > surefire. > JUnit 4.10 > So, I believe that surefire is using junit 4 provider. > JRE version 1.6 > OS: Windows XP Can you try Maven

Re: Unexpected and not-intentional switching of thread during a test method execution by maven-surefire-plugin

2012-07-26 Thread Kristian Rosenvold
attach a debugger to the tests in question to inspect the call stack/threads to find out WTF is going on. Kristian 2012/7/27 Wayne Fay : >> Maven version 3.0.1 >> maven-surefire-plugin version 2.11 >> I haven't set other than exclude and include optional parameters of >

Re: Unexpected and not-intentional switching of thread during a test method execution by maven-surefire-plugin

2012-07-27 Thread Arata Yamamoto
hreads to > find out WTF is going on. > > Kristian > > > 2012/7/27 Wayne Fay : > >> Maven version 3.0.1 > >> maven-surefire-plugin version 2.11 > >> I haven't set other than exclude and include optional parameters of > >> surefire. > >

<    1   2   3   4   5   6