cucumber - Running Cukes in Parallel with JRuby -
i'm trying run cucumber scenarios in parallel within gem. other answers, i've found can execute cucumber scenarios following:
runtime = cucumber::runtime.new runtime.load_programming_language('rb') @result = cucumber::cli::main.new(['features\my_feature:20']).execute!(runtime) the above code works fine when run 1 scenario @ time, when run them in parallel using celluloid or peach, ambiguous step errors. seems step definitions beingness loaded each parallel test , cucumber thinks have multiple steps definitions of same kind.
any ideas how can run these things in parallel?
cucumber not thread safe. each scenario must run in separate thread it's own cucumber runtime. celluloid may seek run multiple scenarios on same actor @ same time.
there project called cukeforker can run scenarios in parallel supports mri on linux , osx. forks subprocess per scenario.
i've created fork of cukeforker called jcukeforker supports both mri , jruby on linux. jcukeforker distribute scenarios subprocesses. subprocesses reused. subprocesses used instead of threads guarantee each test has it's own global variables. of import when running subprocess on vncserver requires display variable set.
cucumber jruby celluloid
No comments:
Post a Comment