buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (BUILDR-435) Forkmode perTest
Date Fri, 20 May 2016 07:19:12 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Antoine Toulme closed BUILDR-435.
---------------------------------
    Resolution: Auto Closed

Closed for inactivity.

> Forkmode perTest
> ----------------
>
>                 Key: BUILDR-435
>                 URL: https://issues.apache.org/jira/browse/BUILDR-435
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3.5
>            Reporter: Rafal Rusin
>             Fix For: 1.5
>
>
> Hello, 
> I used Apache ODE.
> I modified Rakefile to enable forkmode perTest. 
> diff --git a/Rakefile b/Rakefile
> index efb773c..24c70c3 100644
> --- a/Rakefile
> +++ b/Rakefile
> @@ -103,7 +103,8 @@ define "ode" do
>        end
>      end
>      
> -    test.using :testng, :properties=>{ "log4j.debug" => true,  "log4j.configuration"=>"test-log4j.properties",
"test.ports" => ENV['TEST_PORTS'] }, :java_args=>['-Xdebug', '-Xrunjdwp:transport=dt_socket,ser
> +    test.using :testng, :forkmode=>'perTest', :properties=>{ "log4j.debug" =>
true,  "log4j.configuration"=>"test-log4j.properties", "test.ports" => ENV['TEST_PORTS']
}, :java_args=>['-Xmx1024M', '-XX:MaxPe
> +        #:java_args=>['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6001',
'-Xmx1024M', '-XX:MaxPermSize=1024m']
>      test.with projects("tools"), libs, AXIS2_TEST, AXIOM, JAVAX.servlet, Buildr::Jetty::REQUIRES,
HIBERNATE, DOM4J, SLF4J, LOG4J
>      webapp_dir = "#{test.compile.target}/webapp"
>      test.setup task(:prepare_webapp) do |task|
> Then entered axis2-war and typed:
> buildr _1.3.5_ test:BpelActivityTest,ClusteredOutgoingTrafficTest
> I saw JVM was spawned only once. 
> Similarly, I was able to run all tests from axis2-war with 1GB memory limit while doing
it in loop, like this:
> set -e
> for i in `cat all-tests`; do
> echo '---------' $i
> buildr _1.3.5_ clean test:$i
> done
> And it failed on running them all with forkmode perTest:
> buildr _1.3.5_ test:BpelActivityTest,ClusteredOutgoingTrafficTest,EndpointConfigurationTest,EndpointTimeoutsTest,FailureInvokeTest,MessageStructureTest,SelectorsTest,ServiceFaultCatchTest,SoapHeaderTest,XSDReferencesDeployTest,CorrelationJoinHibTest,CorrelationJoinLazyHibTest,CorrelationJoinLazyTest,CorrelationJoinTest,CorrelationMultiHibTest,CorrelationMultiTest,CorrelationUnicityTest,HttpBindingTest,InstanceCountTest,ProcessCountTest,ProcessSizeTest,CleanFailureHibTest,CleanFailureTest,CleanFaultHibTest,CleanFaultTest,CleanSuccessHibTest,CleanSuccessTest,CleanTestBase,ProcessCronCleanupTest,SystemCronCleanupTest,DeploymentTest,InstanceManagementTest,RetireTest,SecuredProcessesTest,SecuredServicesTest,SecuredProcessesTest,SecuredServicesTest



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message