From 23535e282396548542d8cae74a6c0e4859230085 Mon Sep 17 00:00:00 2001 From: ryneeverett Date: Mon, 28 Dec 2015 15:19:56 -0500 Subject: [PATCH] README: how to run tests --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index a6db07f..70e4e54 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,13 @@ My purpose is testing. You can easily enough doctest a markdown file with `python -m doctest myfile.md`, but I don't like typing or looking at a whole bunch of `>>>` and `...`'s. Also there's no way that I know of to run linters against such code blocks. Instead, I include (pytest) functional tests in my codeblocks, extract the code blocks with this script, and then run my test runner and linters against the output files. + +Running Tests +------------- + +```sh +cd /path/to/mkcodes +python setup.py develop +pip install -r test-requirements.txt +./test +```