Skip to content

Instantly share code, notes, and snippets.

@zhangchiqing
Last active January 8, 2016 05:18
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 zhangchiqing/f4a9b2f5a35aad09cc3d to your computer and use it in GitHub Desktop.
Save zhangchiqing/f4a9b2f5a35aad09cc3d to your computer and use it in GitHub Desktop.
doctest
# npm install --save-dev doctest
# Add "/* doctest */" to the file that contains doctest test cases
# Then use `dt` to run all those test cases
alias dt="git grep '\/\* doctest \*\/' | cut -d ':' -f 1 | xargs ./node_modules/.bin/doctest --module commonjs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment