annotate .svn/pristine/15/1563561117c58a8d11c2e6605c5ed92c8394ca39.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

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