Skip to content

Instantly share code, notes, and snippets.

@srininara
Last active September 13, 2019 23:39
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 srininara/8fe17e80f82014e81c7c0834d4173a55 to your computer and use it in GitHub Desktop.
Save srininara/8fe17e80f82014e81c7c0834d4173a55 to your computer and use it in GitHub Desktop.
Python pytest TDD workflow for me
py.test --lf # Runs all tests first time since it does not know of failing tests
py.test --lf # Runs only failing tests
py.test --lf -svv # Runs failing tests with a lot more information
py.test --lf -svv # Runs failing tests (hopefully now you finished writing code and the failing tests pass)
py.test --lf # Runs all tests since last run did not have any failing test
# Read more here https://docs.pytest.org/en/latest/cache.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment