Last active
January 8, 2016 05:18
-
-
Save zhangchiqing/f4a9b2f5a35aad09cc3d to your computer and use it in GitHub Desktop.
doctest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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