Re: [m2] Surefire-Plugin ignores argLine
Marcin, I didn't see a fix version. Do you know if this is going to be fixed in Maven-2.0.3? Thanks, Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 Marcin Cetnarski [EMAIL PROTECTED]To: Maven Users List users@maven.apache.org com.pl cc: Subject: Re: [m2] Surefire-Plugin ignores argLine 02/13/2006 02:15 AM Please respond to Maven Users List Hello Jim, Are you working on Windows? There is a bug in Surefire on Windows platform in forkMode. See http://jira.codehaus.org/browse/SUREFIRE-30. Maybe this will help. JB I am trying to run tests with assertions enabled, but the surefire JB plugin is apparently ignoring the argLine parameter. If I specify the JB following, assertions are not turned on: JB ... JB build JB ... JB plugins JB plugin JB groupIdorg.apache.maven.plugins/groupId JB artifactIdmaven-surefire-plugin/artifactId JB configuration JB test**/*TestSuite*/test JB useFilefalse/useFile JB forkModeonce/forkMode JB argLine-ea/argLine JB /configuration JB /plugin JB ... JB /plugins JB /build JB ... JB By the way, I did try this with -enableassertions as well (which is what JB is shown in the surefire example doc), and it made no difference. JB As a further example, this produces no error at all, even though it JB clearly should, so this argLine parameter is really being ignored: JB plugin JB groupIdorg.apache.maven.plugins/groupId JB artifactIdmaven-surefire-plugin/artifactId JB configuration JB test**/*TestSuite*/test JB useFilefalse/useFile JB forkModeonce/forkMode JB argLine-xxx/argLine JB /configuration JB /plugin JB What is the right way to get surefire to run tests with assertions on? JB Jim Babka JB Senior Software Engineer JB Main: (512) 334 3200 JB Direct: (512) 334 3237 JB Email: [EMAIL PROTECTED] JB JB Webify Solutions JB Enabling the On Demand Enterprise(tm) JB www.webifysolutions.com JB - JB To unsubscribe, e-mail: [EMAIL PROTECTED] JB For additional commands, e-mail: [EMAIL PROTECTED] -- Pozdrowienia, Marcin Cetnarski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Surefire-Plugin ignores argLine
No fix version means that it's not scheduled yet. Plugins follow their own lifecycle, so you'll be able to use it in any maven2 version On 2/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Marcin, I didn't see a fix version. Do you know if this is going to be fixed in Maven-2.0.3? Thanks, Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 Marcin Cetnarski [EMAIL PROTECTED]To: Maven Users List users@maven.apache.org com.pl cc: Subject: Re: [m2] Surefire-Plugin ignores argLine 02/13/2006 02:15 AM Please respond to Maven Users List Hello Jim, Are you working on Windows? There is a bug in Surefire on Windows platform in forkMode. See http://jira.codehaus.org/browse/SUREFIRE-30. Maybe this will help. JB I am trying to run tests with assertions enabled, but the surefire JB plugin is apparently ignoring the argLine parameter. If I specify the JB following, assertions are not turned on: JB ... JB build JB ... JB plugins JB plugin JB groupIdorg.apache.maven.plugins/groupId JB artifactIdmaven-surefire-plugin/artifactId JB configuration JB test**/*TestSuite*/test JB useFilefalse/useFile JB forkModeonce/forkMode JB argLine-ea/argLine JB /configuration JB /plugin JB ... JB /plugins JB /build JB ... JB By the way, I did try this with -enableassertions as well (which is what JB is shown in the surefire example doc), and it made no difference. JB As a further example, this produces no error at all, even though it JB clearly should, so this argLine parameter is really being ignored: JB plugin JB groupIdorg.apache.maven.plugins/groupId JB artifactIdmaven-surefire-plugin/artifactId JB configuration JB test**/*TestSuite*/test JB useFilefalse/useFile JB forkModeonce/forkMode JB argLine-xxx/argLine JB /configuration JB /plugin JB What is the right way to get surefire to run tests with assertions on? JB Jim Babka JB Senior Software Engineer JB Main: (512) 334 3200 JB Direct: (512) 334 3237 JB Email: [EMAIL PROTECTED] JB JB Webify Solutions JB Enabling the On Demand Enterprise(tm) JB www.webifysolutions.com JB - JB To unsubscribe, e-mail: [EMAIL PROTECTED] JB For additional commands, e-mail: [EMAIL PROTECTED] -- Pozdrowienia, Marcin Cetnarski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Surefire-Plugin ignores argLine
Hello Jim, Are you working on Windows? There is a bug in Surefire on Windows platform in forkMode. See http://jira.codehaus.org/browse/SUREFIRE-30. Maybe this will help. JB I am trying to run tests with assertions enabled, but the surefire JB plugin is apparently ignoring the argLine parameter. If I specify the JB following, assertions are not turned on: JB ... JB build JB ... JB plugins JB plugin JB groupIdorg.apache.maven.plugins/groupId JB artifactIdmaven-surefire-plugin/artifactId JB configuration JB test**/*TestSuite*/test JB useFilefalse/useFile JB forkModeonce/forkMode JB argLine-ea/argLine JB /configuration JB /plugin JB ... JB /plugins JB /build JB ... JB By the way, I did try this with -enableassertions as well (which is what JB is shown in the surefire example doc), and it made no difference. JB As a further example, this produces no error at all, even though it JB clearly should, so this argLine parameter is really being ignored: JB plugin JB groupIdorg.apache.maven.plugins/groupId JB artifactIdmaven-surefire-plugin/artifactId JB configuration JB test**/*TestSuite*/test JB useFilefalse/useFile JB forkModeonce/forkMode JB argLine-xxx/argLine JB /configuration JB /plugin JB What is the right way to get surefire to run tests with assertions on? JB Jim Babka JB Senior Software Engineer JB Main: (512) 334 3200 JB Direct: (512) 334 3237 JB Email: [EMAIL PROTECTED] JB JB Webify Solutions JB Enabling the On Demand Enterprise(tm) JB www.webifysolutions.com JB - JB To unsubscribe, e-mail: [EMAIL PROTECTED] JB For additional commands, e-mail: [EMAIL PROTECTED] -- Pozdrowienia, Marcin Cetnarski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Surefire-Plugin ignores argLine
Hi Jim, to get this to work I have set up an environment variable MAVEN_OPTS=-ea in my .profile (I am on MacOSX - do whatever you need to do to set up env variables on your platform) it's less than ideal but for now I have been told this is the only way. Kind regards, Dave Sag Jim Babka [EMAIL PROTECTED] wrote on 06-02-2006 18:54:03: I am trying to run tests with assertions enabled, but the surefire plugin is apparently ignoring the argLine parameter. If I specify the following, assertions are not turned on: ... build ... plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration test**/*TestSuite*/test useFilefalse/useFile forkModeonce/forkMode argLine-ea/argLine /configuration /plugin ... /plugins /build ... By the way, I did try this with -enableassertions as well (which is what is shown in the surefire example doc), and it made no difference. As a further example, this produces no error at all, even though it clearly should, so this argLine parameter is really being ignored: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration test**/*TestSuite*/test useFilefalse/useFile forkModeonce/forkMode argLine-xxx/argLine /configuration /plugin What is the right way to get surefire to run tests with assertions on? Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Surefire-Plugin ignores argLine
By the way, this is what happens with version 2.0 of the surefire plugin. I tried the latest version (2.1.2), but with that version I get no reports at all, even when I tell it to ignore test failures (it tells me a test failed, but I have no way to find out what test it was). I have updated MOJO-107 for this second problem. Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com -Original Message- From: Jim Babka Sent: Monday, February 06, 2006 11:54 AM To: Maven Users List Subject: [m2] Surefire-Plugin ignores argLine I am trying to run tests with assertions enabled, but the surefire plugin is apparently ignoring the argLine parameter. If I specify the following, assertions are not turned on: ... build ... plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration test**/*TestSuite*/test useFilefalse/useFile forkModeonce/forkMode argLine-ea/argLine /configuration /plugin ... /plugins /build ... By the way, I did try this with -enableassertions as well (which is what is shown in the surefire example doc), and it made no difference. As a further example, this produces no error at all, even though it clearly should, so this argLine parameter is really being ignored: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration test**/*TestSuite*/test useFilefalse/useFile forkModeonce/forkMode argLine-xxx/argLine /configuration /plugin What is the right way to get surefire to run tests with assertions on? Jim Babka Senior Software Engineer Main: (512) 334 3200 Direct: (512) 334 3237 Email: [EMAIL PROTECTED] Webify Solutions Enabling the On Demand Enterprise(tm) www.webifysolutions.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]