pytest-dev / pytest-dev/pytest-bdd

Add support for worlds

Open
#205 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.5k
Forks
251
Avg merge
43m
Merged PRs (30d)
2

Description

Cucumber runs scenarios in a world, and different worlds can be created that execute the steps differently, depending on the world. For example, a Web UI world could execute a step by interacting with a web page in a browser (i.e. navigating, entering input, clicking buttons/links, etc); an iOS or Android world could execute the same steps in a native iOS or Android app; an API world could execute the exact same steps simply by calling API endpoints with no interaction with a UI at all; etc. This feature is incredibly useful from a maintenance perspective, since it allows you to have a single place to define all of your step definitions using a ubiquitous language, while at the same time being able to define the actual execution of each step in a separate world file/object.

See the Cucumber wiki for more information on this feature.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Cucumber wiki page, “A Whole New World,” to understand the proposed world model and compare it with pytest-bdd’s current behavior. Identify the project entry points and tests that would need to define and execute worlds; done means the intended world-specific step execution is supported and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.