Behdad Esfahbod
73031d5a63
Allow overriding python for running tests, as well choosing tests
...
The first arg to run-tests.sh is used as a regex to narrow down
tests to run. We should extend this to consider all args as
regexes.
Eg:
./run-tests.sh xml
2015-04-14 19:19:05 -07:00
Behdad Esfahbod
80758953ff
Allow running test suite without git checkout
...
Should I prefer the git-grep if .git/ is available?
2015-04-14 19:11:25 -07:00
Sascha Brawer
2ac42ad3ec
Support unittests in addition to doctests
...
The Python libraries come with two ways of writing unittests:
module unittest, and module doctest. In some cases, unittest
is more natural (less cumbersome) than doctest.
Wrote tests on xmlWriter for illustration.
2015-04-14 17:52:17 -07:00
Behdad Esfahbod
da900f656c
Run module tests as modules
2015-04-07 18:27:23 -07:00
Behdad Esfahbod
e5b78aa212
Fix run-tests.sh to run on dash
...
$(()) is more portable than let, who knew...
2015-03-03 11:31:22 -08:00
Behdad Esfahbod
47cd66e43b
Make run-tests.sh call doctest module directly
...
This makes it fail correctly. Also, run doctest in verbose mode.
2015-03-03 10:47:20 -08:00
Behdad Esfahbod
f439e7b07d
Really fix test runner this time
...
Still doesn't work as we don't return failure from the Python fails
if doctests fail. But the test runner script is correct now.
2015-03-03 10:39:55 -08:00
Behdad Esfahbod
a0befdc025
Make run-tests.sh fail if any tests failed!
2015-03-03 10:16:01 -08:00
Behdad Esfahbod
f192400039
Fix checks; add run-tests.sh
2015-03-03 09:57:41 -08:00