Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 68 lines (44 sloc) 1.465 kb
4c6a02b @lifo Initial commit
authored
1 Tickle
2 ======
3
7015c14 @lifo Fix the link to parallel_specs
authored
4 Tickle spawns multiple processes and tries running your test suite in parallel for reducing the time taken to run them. Thanks to http://github.com/grosser/parallel_specs for the concept.
4c6a02b @lifo Initial commit
authored
5
6 Setup
7 =====
8
9 To install :
10
7a8764e @lifo Fix clone url
authored
11 $ script/plugin install git://github.com/lifo/tickle.git
4c6a02b @lifo Initial commit
authored
12
13 Example
14 =======
15
16 To run all tests :
17
a52be99 @lifo 3 processes by default now
authored
18 $ rake tickle # This will use 3 processes by default
4c6a02b @lifo Initial commit
authored
19
a52be99 @lifo 3 processes by default now
authored
20 To run all tests using 2 processes :
4c6a02b @lifo Initial commit
authored
21
a52be99 @lifo 3 processes by default now
authored
22 $ rake tickle[2]
4c6a02b @lifo Initial commit
authored
23
24 To only run unit tests :
25
26 $ rake tickle:units
27
28 To run unit tests in 4 parallel processes :
29
30 $ rake tickle:units[4]
31
32 tickle:functionals and tickle:integration should work as expected.
4c490c1 @lifo Add tuning notes
authored
33
34 Tuning
35 ======
36
37 For best results, use tickle with Ruby Enterprise Edition and Twitter's GC settings :
38
39 - http://www.rubyenterpriseedition.com/
40 - http://blog.evanweaver.com/articles/2009/04/09/ruby-gc-tuning/
41
7ad9290 @lifo No need to create N new databases now. Just install and it's ready to ro...
authored
42 Database Setup
43 ==============
44
45 If you're NOT USING transactional fixtures, you'll need to create 'N' new databases. Where 'N' is the maximum number of parallel processes you want to run.
46
47 Assuming you want to run 2 proccesses, you'll need to provide test_1 and test_2 config settings in database.yml :
48
49 test_1:
50 adapter: mysql
51 encoding: utf8
52 database: myapp_test1
53 pool: 5
54 username: root
55 password:
56 socket: /tmp/mysql.sock
57
58 test_2:
59 adapter: mysql
60 encoding: utf8
61 database: myapp_test2
62 pool: 5
63 username: root
64 password:
65 socket: /tmp/mysql.sock
66
4c6a02b @lifo Initial commit
authored
67 Copyright (c) 2009 Pratik Naik, released under the MIT license
Something went wrong with that request. Please try again.