Everyone who needs to ensure a strict "backward compatibility" on some 
web2py feature, if not included yet in gluon/tests/*, is **urged** to send 
new tests (or patches to the existent ones) . 
Tests are standard unittests, you can run them easily by:
1. pip install unit2
2. cding into the web2py.py folder and, from the console

PYTHONPATH=. unit2 -v gluon.tests 
if you're on Unix, while

SET PYTHONPATH=. unit2 -v gluon.tests 


if you're on Windows

Travis-ci is covering SQLite 3.7, Postgres 9.1 and Mysql 5.5, but you can 
(and should) test it against your preferred db engine (and your python 
version), if it's not in those three (watch out with NoSQL engines, tests 
may fail, e.g., in testing joins)

You can easily test web2py dal against your preferred db engine setting the 
DB environmental variable to a connection string pointing to your database 
(no tables in there, if you don't want to mess up things)

So, if you want to test the dal against your empty "mydb" that is mssql, 
just do
PYTHONPATH=.;DB=mssql://username:password@localhost/mydb unit2 -v 
gluon.tests.test_dal



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to