Workflow history

from state (4)to statecommentdateUser
donevalidation pending2011/01/13 20:35 UTCsthenault
opendone2011/01/13 20:34 UTCsthenault
waiting feedbackopen2011/01/13 20:34 UTCsthenault
openwaiting feedback

we can mimick pytest command usage by using this shell function:

runtests() {
       directory=$(dirname ${1:-"."})
       [[ "$directory" = "." ]] && directory="test"
       unit2 discover -s $directory -p $(basename ${1:-'*test*.py'})

Not perfect but should be enough usable. You can pass a filepath to this function lilke pytest:

$ runtests unit2 discover -s test -p

$ runtests test/ unit2 discover -s test -p

$ runtests unit2 discover -s test -p # test directory by default

2010/11/30 10:55 UTC