Skip to content

Commit

Permalink
README: how to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryneeverett committed Dec 28, 2015
1 parent 80d208c commit 23535e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 23535e2

Please sign in to comment.