Menu

Trac Commit Log


Commit Date  
[r8191] by cboos

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.

2009-05-10 15:11:58 Tree
[r8190] by cboos

rework-testing branch: re-use utilities from the DB api for abstracting SQL dialect differences.

This is a first step towards running unit-tests with alternative database backends.

2009-05-10 14:27:40 Tree
[r8189] by cboos

rework-testing branch: Makefile improvements

Make it easy to specify on the command line:
- which python version to use (`make python=<version>`), where `<version>` is one of 23, 24, 25, 26 or any other key defined in the Makefile. If no version is specified, this defaults to the python program currently in the PATH, as before.
- which db backend to use (`make db=<backend>`), where `<backend>` is one of postgres or mysql. If no backend is explicitly specified, the database backend defaults to the SQLite :memory: kind.

The setup for Python and database backends is for now placed in the Makefile itself, but I'll move that in a second step in a Makefile.cfg file.

2009-05-10 14:20:43 Tree
[r8188] by cboos

0.12dev: port r8179, r8185 and r8186 from 0.11-stable.

2009-05-10 14:07:12 Tree
[r8187] by cboos

0.12dev: prevent r8177 from being merged back.

2009-05-10 11:11:00 Tree
[r8186] by cboos

During initenv, make sure the prompt questions and answers can contain unicode characters.

This will be useful for 0.12dev, when the translations are enabled and the LANG environment variable is set.

But even in 0.11.x, the input itself can contain non-ascii characters (e.g. in the project name), so first apply to 0.11-stable.

Closes #8275.

2009-05-10 11:07:17 Tree
[r8185] by cboos

Have a more explicit ''Configuration Error'' displayed when a TracIni entry of type int (i.e. an `IntOption`) is set to a value not convertible to an int.

Closes #8264.

2009-05-10 09:28:21 Tree
[r8184] by rblank

0.11-stable: Don't display changeset comments in browser and log for changesets where the user doesn't have view permission.

Closes #5640.

2009-05-08 13:44:01 Tree
[r8183] by rblank

0.12dev: Don't invalidate the wiki page name cache when importing wiki pages through `trac-admin` if this doesn't create a new page.

Related to #8270.

2009-05-08 10:02:34 Tree
[r8182] by rblank

0.12dev: Invalidate the wiki page name cache in the model, in the same transaction as the wiki page update, in the same way as the ticket field cache.

Related to #8270.

2009-05-08 09:49:11 Tree
Older >