annotate .svn/pristine/55/55656b808ca026c38683e6dfc5a04c01603da464.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents 038ba2d95de8
children
rev   line source
Chris@1296 1 Installing gems for testing
Chris@1296 2 ===========================
Chris@1296 3
Chris@1296 4 Remove your .bundle/config if you've already installed Redmine without
Chris@1296 5 the test dependencies. Then, run `bundle install`.
Chris@1296 6
Chris@1296 7 Running Tests
Chris@1296 8 =============
Chris@1296 9
Chris@1296 10 Run `rake --tasks test` to see available tests.
Chris@1296 11 Run `rake test` to run the entire test suite (except the tests for the
Chris@1296 12 Apache perl module Redmine.pm, see below).
Chris@1296 13
Chris@1296 14 You can run `ruby test/unit/issue_test.rb` for running a single test case.
Chris@1296 15
Chris@1296 16 Before running tests, you need to configure both development
Chris@1296 17 and test databases.
Chris@1296 18
Chris@1296 19 Creating test repositories
Chris@1296 20 ==========================
Chris@1296 21
Chris@1296 22 Redmine supports a wide array of different version control systems.
Chris@1296 23 To test the support, a test repository needs to be created for each of those.
Chris@1296 24
Chris@1296 25 Run `rake --tasks test:scm:setup` for a list of available test-repositories or
Chris@1296 26 run `rake test:scm:setup:all` to set up all of them. The repositories are
Chris@1296 27 unpacked into {redmine_root}/tmp/test.
Chris@1296 28
Chris@1296 29 If the test repositories are not present, the tests that need them will be
Chris@1296 30 skipped.
Chris@1296 31
Chris@1296 32 Creating a test ldap database
Chris@1296 33 =============================
Chris@1296 34
Chris@1296 35 Redmine supports using LDAP for user authentications. To test LDAP
Chris@1296 36 with Redmine, load the LDAP export from test/fixtures/ldap/test-ldap.ldif
Chris@1296 37 into a testing LDAP server. Make sure that the LDAP server can be accessed
Chris@1296 38 at 127.0.0.1 on port 389.
Chris@1296 39
Chris@1296 40 Setting up the test LDAP server is beyond the scope of this documentation.
Chris@1296 41 The OpenLDAP project provides a simple LDAP implementation that should work
Chris@1296 42 good as a test server.
Chris@1296 43
Chris@1296 44 If the LDAP is not available, the tests that need it will be skipped.
Chris@1296 45
Chris@1296 46 Running Redmine.pm tests
Chris@1296 47 ========================
Chris@1296 48
Chris@1296 49 (work in progress)
Chris@1296 50
Chris@1296 51 Running the tests for the Redmine.pm perl module needs a bit more setup.
Chris@1296 52 You need an Apache server with mod_perl, mod_dav_svn and Redmine.pm configured.
Chris@1296 53 See: http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
Chris@1296 54
Chris@1296 55 You need an empty repository accessible at http://127.0.0.1/svn/ecookbook
Chris@1296 56 Then, you can run the tests with:
Chris@1296 57 `ruby test\extra\redmine_pm\repository_subversion_test.rb`
Chris@1296 58
Chris@1296 59 If you svn server is not running on localhost, you can use the REDMINE_TEST_DAV_SERVER
Chris@1296 60 environment variable to specify another host.