diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-23 22:59:41 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-23 22:59:41 -0500 |
| commit | 592eb5cfb91c2d072967d8b90d8c8b061f434403 (patch) | |
| tree | 61c82ec8db44cbb319a856af66f03ebfa400f36e | |
| parent | 1f2651c54ee30039b6a1289a63e44d538ecf6d6a (diff) | |
| download | mal-592eb5cfb91c2d072967d8b90d8c8b061f434403.tar.gz mal-592eb5cfb91c2d072967d8b90d8c8b061f434403.zip | |
README: instructions on running tests.
| -rw-r--r-- | README.md | 48 |
1 files changed, 48 insertions, 0 deletions
@@ -160,3 +160,51 @@ python stepX_YYY.py cd ruby ruby stepX_YYY.rb ``` + +## Running tests + +The are nearly 400 generic Mal tests (for all implementations) in the +`tests/` directory. Each step has a corresponding test file containing +tests specific to that step. The `runtest.py` test harness uses +pexpect to launch a Mal step implementation and then feeds the tests +one at a time to the implementation and compares the output/return +value to the expected output/return value. + +To simplify the process of running tests, a top level Makefile is +provided with convenient test targets. + +* To run all the tests across all implementations (be prepared to wait): + +``` +make test +``` + +* To run all tests against a single implementation: + +``` +make test^IMPL + +# e.g. +make test^clojure +make test^js +``` + +* To run tests for a single step against all implementations: + +``` +make test^stepX + +# e.g. +make test^step2 +make test^step7 +``` + +* To run a specifc step against a single implementation: + +``` +make test^IMPL^stepX + +# e.g +make test^ruby^step3 +make test^ps^step4 +``` |
