Repository navigation
parallel support - #616
parallel support#616xrg wants to merge 435 commits into
Conversation
…. Fix some minor inheritance issues.
…Writer (provided by: florentx)
… (outside ASCII char range) are used.
JSON formatter can now generate valid JSON output.
* behave.step_durations.py: Shows longest step durations based on JSON data. * json.format.py: Reformats JSON files (and validates well-formedness).
… (and table annotations) and step processing with tables.
…ble). Refactor out common parts to behave.model_describe (and reuse them). Adapt pretty formatter accordingly.
Change output to improve readability in XML file (complete scenario). Change output related to step failures slightly.
…that the parser does not raise an exception if they are encountered
…e action_steps method
CHANGES:
* Add description attribute also to ScenarioOutline ctor.
* Move description parameter to end of Scenario/ScenarioOutline ctor.
=> Problem because parameter was already used by steps.
* Extend JsonFormatter to store Scenario/ScenarioOutline description.
* Extend json_parser to handle Scenario/ScenarioOutline description.
* Cleanup/refactor parser to avoid duplicated code fragments:
=> _build_*_statement()
=> subaction_detect_next_scenario() to avoid duplicated code fragments
=> action_next_scenario (tags and more...)
=> Add check that Background does not support tags.
=> ParseError: Add stripped line to exception message (better context).
eccf022 to
93e1218
Compare
cc16ac0 to
22569f4
Compare
01407cf to
42e64a9
Compare
|
I'd love to see this feature and would be happy to try and contribute some time to making it happen. However, this branch has been around for too long with the branch originated so so so many years ago. I've tried to rebase this and there is so much complexity to it beyond "just" the multiprocessing element (which is relatively complex on its own. Is there any way to break down this change into multiple PRs that can all be merged independently? |
9dc617b to
b8b23bc
Compare
612d6d1 to
5796057
Compare
370ce68 to
cba3c4f
Compare
|
@withnale I / Claude had a stab at this; wiebren@26b07b3 treat as highly experimental, when I have some more confidence I may make a PR request out of it to upstream it |
now available as a separate package; https://github.com/wiebren/behave-parallel-runner |
This is a refactoring of tokunbo/behave-parallel, as in issue #235 . At this take, I have let the multiprocessing module fork before loading context or running any hooks. Then, the jobs are communicated using their
id()(because of the fork, these mem. positions remain identical to the children) and then results are pushed back to the master (as primitive types, too). They are gathered in the master and "replayed" using the formatters/reporters.This take seems to work well, and solves a problem where customized steps would not be pickle-able for tokunbo's approach.