Skip to content

Instantly share code, notes, and snippets.

@aczietlow
Last active May 11, 2018 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aczietlow/508d94d2f2dbefc816d24759215f326b to your computer and use it in GitHub Desktop.
Save aczietlow/508d94d2f2dbefc816d24759215f326b to your computer and use it in GitHub Desktop.

Diego Testing ™

Install python (comes with pip)

  • brew install python

Install python dependencies

  • pip install behave, selenium, ipdb, behave2cucumber

Install gecko driver

Moar dependencies

  • npm install cucumber_reports

How to do the thing

  • cd into dir containing Features directory
    • e.g. cd ~/Projects/Dixon-tests/Examples
  • Run behave test suite
    • touch dixon-results.json
    • behave --format json > dixon-results.json
  • Clean behave test result json
    • python -m behave2cucumber -i Features/dixon-results.json -o Features/dixon-results-clean.json
  • Generate prettified html report
    • node cucumber_reports/generateReport -f Features/dixon-results-clean.json #Diego Testing ™

Install python (comes with pip)

  • brew install python

Install python dependencies

  • pip install behave, selenium, ipdb, behave2cucumber

Install gecko driver

Moar dependencies

  • npm install cucumber_reports

How to do the thing

  • cd into dir containing Features directory
    • e.g. cd ~/Projects/Dixon-tests/Examples
  • Run behave test suite
    • touch dixon-results.json
    • behave --format json > dixon-results.json
  • Clean behave test result json
    • python -m behave2cucumber -i Features/dixon-results.json -o Features/dixon-results-clean.json
  • Generate prettified html report
    • node cucumber_reports/generateReport -f Features/dixon-results-clean.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment