To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / doc / RUNNING_TESTS @ 912:5e80956cc792
History | View | Annotate | Download (1.22 KB)
| 1 | 0:513646585e45 | Chris | Installing gems for testing |
|---|---|---|---|
| 2 | =========================== |
||
| 3 | |||
| 4 | Run `rake gems RAILS_ENV=test` to list the required gems. Run |
||
| 5 | `rake gems:install RAILS_ENV=test` to install any missing gems. |
||
| 6 | |||
| 7 | Running Tests |
||
| 8 | ============= |
||
| 9 | |||
| 10 | Run `rake --tasks test` to see available tests. |
||
| 11 | `rake test` will run the entire testsuite. |
||
| 12 | 909:cbb26bc654de | Chris | You can run `ruby test/unit/issue_test.rb` for an each test. |
| 13 | 0:513646585e45 | Chris | |
| 14 | 909:cbb26bc654de | Chris | Before running tests, you need to configure both development |
| 15 | 0:513646585e45 | Chris | and test databases. |
| 16 | |||
| 17 | Creating test repositories |
||
| 18 | =================== |
||
| 19 | |||
| 20 | Redmine supports a wide array of different version control systems. |
||
| 21 | To test the support, a test repository needs to be created for each of those. |
||
| 22 | |||
| 23 | Run `rake --tasks test:scm:setup` for a list of available test-repositories or |
||
| 24 | run `rake test:scm:setup:all` to set up all of them |
||
| 25 | |||
| 26 | Creating a test ldap database |
||
| 27 | ============================= |
||
| 28 | |||
| 29 | Redmine supports using LDAP for user authentications. To test LDAP |
||
| 30 | with Redmine, load the LDAP export from test/fixtures/ldap/test-ldap.ldif |
||
| 31 | into a testing LDAP server. Test that the ldap server can be accessed |
||
| 32 | at 127.0.0.1 on port 389. |
||
| 33 | |||
| 34 | Setting up the test ldap server is beyond the scope of this documentation. |
||
| 35 | The OpenLDAP project provides a simple LDAP implementation that should work |
||
| 36 | good as a test server. |