title: What's the best way to set up a per-test or per-class timeout when using <junit> in perBatch forkmode?
body: <p>I want to fail the build if anyone writes a test that takes longer than 1 second to run, but if I run  in perTest mode it takes much, much longer.</p>
  
  <p>I could probably write a custom task that parses the junit reports and fails the build based on that, but I was wondering if anyone knows or can think of a better option.</p>