Run Python unittests and doctests.

Add a meta/check.sh script that runs unit tests before the syntax
linters.

Add unittest converters for the existing doctests.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-27 13:45:05 -07:00
parent a616a46db7
commit efa1b8a9ec
5 changed files with 21 additions and 9 deletions

8
meta/test_srcgen.py Normal file
View File

@@ -0,0 +1,8 @@
from __future__ import absolute_import
import doctest
import srcgen
def load_tests(loader, tests, ignore):
tests.addTests(doctest.DocTestSuite(srcgen))
return tests