parallel execution support for behave #930
Replies: 3 comments
-
Yes, there is a plan to support parallel execution in the future. Therefore, you are best served to use the suggested URL above (if it helps you). |
Beta Was this translation helpful? Give feedback.
-
Until the native parallel executions are implemented in Behave, I highly recommend checking out the BehaveX library. BehaveX is a wrapper that extends the Behave framework with additional features that can significantly improve the performance of your test suites. Some of the key features include: ☑ 𝗣𝗮𝗿𝗮𝗹𝗹𝗲𝗹 test execution for improved performance
BehaveX is easy to use. Simply install the library and replace the "behave" executable with "behavex" (I recommend taking a look at the documentation as not all Behave arguments are supported yet, but the most important ones). Then, you can run your tests in parallel using the following commands: ▶ 𝚋𝚎𝚑𝚊𝚟𝚎𝚡 -𝚝 @𝚃𝙰𝙶 --𝚙𝚊𝚛𝚊𝚕𝚕𝚎𝚕-𝚙𝚛𝚘𝚌𝚎𝚜𝚜𝚎𝚜 𝟺 --𝚙𝚊𝚛𝚊𝚕𝚕𝚎𝚕-𝚜𝚌𝚑𝚎𝚖𝚎 𝚜𝚌𝚎𝚗𝚊𝚛𝚒𝚘 ▶ 𝚋𝚎𝚑𝚊𝚟𝚎𝚡 -𝚝 @𝚃𝙰𝙶 --𝚙𝚊𝚛𝚊𝚕𝚕𝚎𝚕-𝚙𝚛𝚘𝚌𝚎𝚜𝚜𝚎𝚜 𝟹 --𝚙𝚊𝚛𝚊𝚕𝚕𝚎𝚕-𝚜𝚌𝚑𝚎𝚖𝚎 𝚏𝚎𝚊𝚝𝚞𝚛𝚎 The --𝗽𝗮𝗿𝗮𝗹𝗹𝗲𝗹-𝗽𝗿𝗼𝗰𝗲𝘀𝘀𝗲𝘀 option specifies the number of processes to use for parallel execution. The --𝗽𝗮𝗿𝗮𝗹𝗹𝗲𝗹-𝘀𝗰𝗵𝗲𝗺𝗲 option specifies the scheme to use for parallel execution. The supported schemes are 'scenario' and 'feature'. |
Beta Was this translation helpful? Give feedback.
-
Is there any plan to support parallel execution natively in behave, just like pytest has it?
My use case is to use parallel testing for features on a build server / locally to reduce the test execution time. Also would like to hear how other in the community are approaching this type of use case.
Beta Was this translation helpful? Give feedback.
All reactions