14 Commits

Author SHA1 Message Date
Behdad Esfahbod
801dcf21d6 Report failing modules 2015-04-21 11:06:56 -07:00
Behdad Esfahbod
95e2db7e47 Another try to fix TravisCI
Apparently the problem was with the first shift, not with the loop:
749eb3de80 (commitcomment-10792844)
2015-04-19 12:04:47 -07:00
Behdad Esfahbod
ecbe88cf17 Try fixing the build 2015-04-19 11:53:35 -07:00
Behdad Esfahbod
749eb3de80 Process all arguments to run-tests.sh as filters 2015-04-19 04:56:08 -07:00
Behdad Esfahbod
6fe84c7f74 Add -2 and -3 to run-tests.sh to choose Python 2 / 3 2015-04-15 17:41:12 -07:00
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