Menu

Commit [r8191]  Maximize  Restore  History

rework-testing branch: make it possible to run the unit-tests using the alternative database backend specified by the TRAC_TEST_DB_URI environment variable.

Decent speed is achieved by "resetting" the database instead of dropping all the tables (MySQL) or the schema (PostgreSQL). This reset operation clears all the data (`DELETE FROM` and `ALTER SEQUENCE` for PostgreSQL, `TRUNCATE TABLE` for MySQL).

As the support for alternative database backend mostly moved to `trac.test` and the `EnvironmentStub`, the code in `trac.tests.functional.FunctionalTestEnvironment` has been significantly simplified.

cboos 2009-05-10

changed /sandbox/rework-testing/trac/test.py
changed /sandbox/rework-testing/trac/tests/attachment.py
changed /sandbox/rework-testing/trac/tests/functional/testenv.py
changed /sandbox/rework-testing/trac/tests/perm.py
changed /sandbox/rework-testing/trac/tests/wikisyntax.py
changed /sandbox/rework-testing/trac/ticket/tests/api.py
changed /sandbox/rework-testing/trac/ticket/tests/conversion.py
changed /sandbox/rework-testing/trac/ticket/tests/model.py
changed /sandbox/rework-testing/trac/ticket/tests/notification.py
changed /sandbox/rework-testing/trac/ticket/tests/query.py
changed /sandbox/rework-testing/trac/ticket/tests/report.py
changed /sandbox/rework-testing/trac/ticket/tests/roadmap.py
changed /sandbox/rework-testing/trac/ticket/tests/wikisyntax.py
changed /sandbox/rework-testing/trac/web/tests/auth.py
changed /sandbox/rework-testing/trac/web/tests/session.py
changed /sandbox/rework-testing/trac/wiki/tests/formatter.py
changed /sandbox/rework-testing/trac/wiki/tests/model.py
changed /sandbox/rework-testing/trac/wiki/tests/wikisyntax.py
/sandbox/rework-testing/trac/test.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/tests/attachment.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/tests/functional/testenv.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/tests/perm.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/tests/wikisyntax.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/ticket/tests/api.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/ticket/tests/conversion.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/ticket/tests/model.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/ticket/tests/notification.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/ticket/tests/query.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/ticket/tests/report.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/ticket/tests/roadmap.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/ticket/tests/wikisyntax.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/web/tests/auth.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/web/tests/session.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/wiki/tests/formatter.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/wiki/tests/model.py Diff Switch to side-by-side view
Loading...
/sandbox/rework-testing/trac/wiki/tests/wikisyntax.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB