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
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
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
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
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
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'
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?
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
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
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
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
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
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.
&
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
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
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)
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
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
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
; -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
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
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
AM cc
Subject
Please respond to Re: Maven 2.0.9 complains it can't
"Maven Users
Users download maven-surefire-plugin
List" 2.4.2 -- NEED HELP
<[EMAIL PROTECTED]
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
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>
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
cc
Subject
Please respond to Re: Maven 2.0.9 complains it can't
"Maven Users download maven-surefire-plugin
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:
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
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
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
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
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
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
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
> >
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
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
> 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.
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
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
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
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
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
, 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
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
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
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
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
ugins
maven-surefire-plugin
true
surefire-it
integration-test
test
false
Result:
[INFO] Scanning for projects...
[INFO]
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
:[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
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
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 <[
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
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
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
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
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
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
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
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
; 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
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
>
>
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
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
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
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
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
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
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
18/11/2005 10:11
cc
VeuillezObjet
répondre à maven-surefire-plugin -
Maven Users List
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
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
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
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.
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
> 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.
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
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
> 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
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
>
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.
> >
501 - 583 of 583 matches
Mail list logo