Skip to content

Instantly share code, notes, and snippets.

@srininara
srininara / tdd.sh
Last active September 13, 2019 23:39
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
@srininara
srininara / Helloworld.java
Last active September 24, 2019 13:35
Class cruft introduced by the language
class A {
public static void main(String args[]){
System.out.println("Hello World");
}
}
// in python it would be print("Hello World")