Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document available steps #9

Open
goldmann opened this issue Mar 6, 2019 · 2 comments
Open

Document available steps #9

goldmann opened this issue Mar 6, 2019 · 2 comments

Comments

@goldmann
Copy link
Contributor

goldmann commented Mar 6, 2019

No description provided.

@rnc
Copy link
Contributor

rnc commented Feb 10, 2023

Also, from #5, the following environment variables should be documented:

  • MAVEN_MIRROR_URL
  • BEHAVE_TIMEOUT

@jmtd
Copy link
Collaborator

jmtd commented Feb 27, 2024

--steps-catalog might help. E.g.

$ behave --dry-run --format=steps.catalog | head
Given define variable
  Location: steps/steps.py:294

Given container is started with env
  Location: steps/container_steps.py:72

Given container is started with args
  Location: steps/container_steps.py:86

Given container is started with entrypoint {entrypoint}

Possibly useful formatters (shown by --format=help are)

  • steps: groups Given/when/then which is useful, links to implementation path:line; doesn't include docs
  • steps.catalog: groups given/when/then; reports implementation path:line on an indented second line; includes docs when the steps have them;
  • steps.usage: reports on the usage of steps for a particular image. THus not generically useful

The output of steps.catalog could be lightly marked up and turned into HTML, perhaps pushd to github pages on commit.

PoC here: https://github.com/jmtd/behave-test-steps/tree/gh-pages-doc-steps ; example output: https://github.com/jmtd/behave-test-steps/blob/gh-pages-doc-steps/docs.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants