Chip Senkbeil created TOREE-269:
-----------------------------------
Summary: Switch to parallel test execution
Key: TOREE-269
URL: https://issues.apache.org/jira/browse/TOREE-269
Project: TOREE
Issue Type: Improvement
Reporter: Chip Senkbeil
Assignee: Chip Senkbeil
I've used this in other projects and it speeds up tests by a factor of 10 or
more. You bring in {code}ParallelTestExecution{code} as a trait for all of your
test classes. Sbt will run tests in parallel automatically once that is added.
_ ParallelTestExecution_ in turn brings in _OneInstancePerTest_, which makes
ScalaTest specs act like JUnit where a new instance of the class is created per
test so any val is created fresh per test. As long as a spec doesn't depend on
any global state, we can add _ ParallelTestExecution_ and be done with it.
Obviously, system tests won't do this, although the kernel _should_ be able to
handle concurrent requests by blocking.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)