On Tue, Aug 10, 2010 at 3:58 PM, Free Ekanayaka <f...@64studio.com> wrote: > Hi, > > is there a way to tell trial run groups of tests in parallel in > different processes? Something like the "-jN" option in zope-testrunner. > > Or alternatively, what's the recommended way to make better use of > multi-core CPUs when running a test suite with trial? >
In short, no. There's a longstanding ticket about doing this: http://twistedmatrix.com/trac/ticket/1784. It would be pretty easy to kludge something together that worked for parallelizing across cores if you're willing to sacrifice the debugger support and a bunch of the other advanced things that disttrial aim to achieve. * Add a way for trial to run tests based off a list of FQPNs in a file, say, --from-list * Write something that does: * trial --reporter=subunit --dry-run | subunit-ls > all-tests * split all-tests into N sublists however you fancy * trial --reporter=subunit --from-list=sublistN * Then something that aggregates those subunit streams into a real report. jml _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python