Permalink
Browse files

generate test files from a template

  • Loading branch information...
ingydotnet committed Sep 15, 2010
1 parent ab1b9c6 commit 842b1a3efaec66dc881dcf9210c23a93bb914f7f
Showing with 22 additions and 5 deletions.
  1. +8 −0 tests/Makefile
  2. +8 −0 tests/template.py
  3. +4 −1 tests/test-basic.py
  4. +2 −4 tests/testml.yaml
View
@@ -1,2 +1,10 @@
DEVLIB=../../testml-pm/lib
tests:
perl -MTestML::Setup -e setup testml.yaml
dev:
perl -I$(DEVLIB) -MTestML::Setup -e setup testml.yaml
clean:
rm -fr testml/*.tml
View
@@ -0,0 +1,8 @@
import sys;
sys.path.insert(0, '.')
sys.path.insert(0, 'tests')
from testml import *
TestML.runner = 'testml.runtime.unittest'
TestML.document = 'testml/[% testml_file %]'
TestML.bridge = 'bridge'
test()
View
@@ -1,5 +1,8 @@
import sys;
sys.path.insert(0, '.')
sys.path.insert(0, 'tests')
from testml import *
TestML.run = 'unittest'
TestML.runner = 'testml.runtime.unittest'
TestML.document = 'testml/basic.tml'
TestML.bridge = 'bridge'
test()
View
@@ -1,8 +1,6 @@
prepend: "import sys; sys.path.insert(0, '.')\n"
testml: ../../testml-tml
local: testml
lang: py
bridge: bridge
filename: test-$name.py
template: template.py
include:
- basic
skip: []

0 comments on commit 842b1a3

Please sign in to comment.