Code Monkey home page Code Monkey logo

panto's Introduction

Panto

Panto is parallel ant operations... Oh no it isn't!

Oh yes it is, you can download here.

Striped Resource Collections

Panto's striped resources allow for parallelisation of many ant tasks.

  <typedef name="stripedresources"
           classname="org.netmelody.panto.type.StripedResourceCollection"
           classpath="path/to/panto-0.0.1.jar" />

  <fileset id="test.files" dir="my/test/dir" includes="**/*Test.class" />
  <parallel>
    <junit>
      <batchtest>
        <stripedresources stripeCount="2" stripeNum="1">
          <fileset refid="test.files"/>
        </stripedresources>
      </batchtest>
    </junit>
    <junit>
      <batchtest>
        <stripedresources stripeCount="2" stripeNum="2">
          <fileset refid="test.files"/>
        </stripedresources>
      </batchtest>
    </junit>
  </parallel>

Striped JUnit Testing

Panto's parallel JUnit task makes parallelising junit tests easy.

  <taskdef name="paralleljunit"
           classname="org.netmelody.panto.task.ParallelJUnitTask"
           classpath="path/to/panto-0.0.1.jar" />

  <paralleljunit>
      <junit /> <!-- substitute your normal junit ant task here -->
  </paralleljunit>

panto's People

Contributors

scarytom avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

panto's Issues

Attribute showoutput of JUnit Task unsupported

paralleljunit threadcount="${antThreads}"
junit printsummary="withOutAndErr" showoutput="true"
...
/junit
/paralleljunit

The paralleljunit Task doesnt support the showoutput attribute of the junit-task

Easy solution: add new attribute to RecordingJUnitTask.java:
private boolean showOutput = false;
and of course the setter:
public void setShowOutput(boolean showoutput) {
this.showOutput = showoutput;
}
and set the attribute on the new junit task:
junit.setShowOutput(showOutput);

Same Problem with 'outputtoformatters' attribute

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.