buildoutのzc.recipe.eggは、スクリプトにデフォルトの引数をつけたりできる。
src以下にテスト対象があるって想定で以下のように。
[webtest]
recipe = zc.recipe.egg:scripts
eggs =
myapp
setuptools
nose
WebTest
initialization =
sys.argv[1:1] = ["-w", "src", "--with-doctest"]
scripts = nosetests=webtest
GAEのテストをしたければ以下のような。
[webtest]
recipe = zc.recipe.egg:scripts
eggs =
myapp
setuptools
nose
NoseGAE
WebTest
initialization =
sys.argv[1:1] = ["-w", "src", "--with-gae", "--with-doctest"]
scripts = nosetests=webtest
スライスに代入するのって、文法上できるってだけで、普通やらないよなと思ってましたが…
![](http://img.zemanta.com/pixy.gif?x-id=539e9a73-0abc-87e6-af1d-71b2b9af0313)
|