All,
On Monday, December 17, 2012 10:11:13 PM UTC+5:30, Ian W. Scott wrote:
After a bit of hacking I put together a working test runner for pytest.
Here it is:
Run this app's tests via py.test
place this file in applications/appname/bin/
run with: python your web2py dir/web2py.py -S
Ian
The following is still useful after more than a year. Thanks !!
I made some modifications - mostly my specific paths before calling
run_pytest, and my run_test.py is in scripts folder rather than bin.
I'm getting an error :
NameError: name 'db' is not defined
I'm running it as :
python
After a bit of hacking I put together a working test runner for pytest.
Here it is:
Run this app's tests via py.test
place this file in applications/appname/bin/
run with: python your web2py dir/web2py.py -S paideia -M -R
applications/appname/bin/runtest.py
import os
import sys
import
Nice, Ian.
I'm overworking these days. I'll touch this next week.
On Mon, Dec 17, 2012 at 2:41 PM, Ian W. Scott scotti...@gmail.com wrote:
After a bit of hacking I put together a working test runner for pytest. Here
it is:
Run this app's tests via py.test
place this file in
4 matches
Mail list logo