freshen
freshen copied to clipboard
Support parallel execution of tests
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.
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.
Hi siddhi! Can you provide a link to the patch, please?
Hi jerico, this is the commit that I use - https://github.com/silverstripesoftware/freshen/commit/c1df773fb5ff2e76153a2fb948fd1bd395dac546
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?
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.