freshen icon indicating copy to clipboard operation
freshen copied to clipboard

Support parallel execution of tests

Open siddhi opened this issue 14 years ago • 5 comments

It is currently not possible to run tests in parallel.

scc is a global variable, so each test writes to it and conflicts with other test that are running and might also be using scc.

Instead a new scc object should be created for each test and made available for the steps to use, so that multiple tests running in parallel will be using their own copy of their local context without interference from other tests that are running.

siddhi avatar Feb 11 '11 10:02 siddhi

I have a patch that makes this possible. However, it is backwards incompatible because step functions now need to take the context as a parameter.

siddhi avatar Mar 04 '11 06:03 siddhi

Hi siddhi! Can you provide a link to the patch, please?

fgrandel avatar Jun 02 '11 19:06 fgrandel

Hi jerico, this is the commit that I use - https://github.com/silverstripesoftware/freshen/commit/c1df773fb5ff2e76153a2fb948fd1bd395dac546

siddhi avatar Jun 06 '11 08:06 siddhi

Hi siddhi! Thanks for that. Roman, now that we have a patch, is this something to be considered for the milestone release? Or will this break backwards compat?

fgrandel avatar Jun 06 '11 14:06 fgrandel

Indeed it does break backwards compatibility. siddhi, how are you running parallel tests. Is it using nose's nose.plugin.multiprocess plugin? I haven't tried running parallel tests yet, but it seems like if they run in separate processes then the global state in the contexts shouldn't matter. Please correct me if I'm wrong.

rlisagor avatar Jun 07 '11 02:06 rlisagor