specjour 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +6 -0
- data/README.markdown +4 -4
- data/VERSION +1 -1
- data/lib/specjour.rb +1 -1
- data/rails/init.rb +4 -2
- data/specjour.gemspec +2 -2
- metadata +3 -3
data/History.markdown
CHANGED
data/README.markdown
CHANGED
@@ -37,7 +37,7 @@ Run the rake task to distribute the features among the managers you started.
|
|
37
37
|
$ rake specjour:cucumber
|
38
38
|
|
39
39
|
## Rails
|
40
|
-
Each worker should run their specs in an isolated database. Modify the test database name in your `config/database.yml` to include the following environment variable (Influenced by [
|
40
|
+
Each worker should run their specs in an isolated database. Modify the test database name in your `config/database.yml` to include the following environment variable (Influenced by [parallel\_tests](http://github.com/grosser/parallel_tests)):
|
41
41
|
|
42
42
|
test:
|
43
43
|
database: blog_test<%=ENV['TEST_ENV_NUMBER']%>
|
@@ -49,7 +49,7 @@ Add the specjour gem to your project:
|
|
49
49
|
Doing this enables a rails plugin wherein each worker will attempt to clear its database tables before running any specs via `DELETE FROM <table_name>;`. Additionally, test databases will be created if they don't exist (i.e. `CREATE DATABASE blog_test8` for the 8th worker) and your schema will be loaded when the database is out of date.
|
50
50
|
|
51
51
|
### Customizing database setup
|
52
|
-
If the plugin doesn't set up the database properly for your test suite, bypass it entirely. Remove specjour as a project gem and create your own initializer to setup the database. Specjour sets the environment variable
|
52
|
+
If the plugin doesn't set up the database properly for your test suite, bypass it entirely. Remove specjour as a project gem and create your own initializer to setup the database. Specjour sets the environment variable PREPARE\_DB when it runs your specs so you can look for that when setting up the database.
|
53
53
|
|
54
54
|
# config/initializers/specjour.rb
|
55
55
|
|
@@ -85,7 +85,7 @@ Distributed testing doesn't have to happen over multiple machines, just multiple
|
|
85
85
|
* voxdolo - Endless support, alpha testing, various patches
|
86
86
|
* leshill - Made rsync daemon configurable
|
87
87
|
* testjour - Ripped off your name
|
88
|
-
*
|
88
|
+
* parallel\_tests - Made my test suite twice as fast
|
89
89
|
|
90
90
|
## Note on Patches/Pull Requests
|
91
91
|
|
@@ -101,4 +101,4 @@ Distributed testing doesn't have to happen over multiple machines, just multiple
|
|
101
101
|
|
102
102
|
## Copyright
|
103
103
|
|
104
|
-
Copyright (c) 2010 Sandro Turriate. See
|
104
|
+
Copyright (c) 2010 Sandro Turriate. See MIT\_LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/lib/specjour.rb
CHANGED
data/rails/init.rb
CHANGED
data/specjour.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{specjour}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sandro Turriate"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-13}
|
13
13
|
s.default_executable = %q{specjour}
|
14
14
|
s.description = %q{Distribute your spec suite amongst your LAN via Bonjour.}
|
15
15
|
s.email = %q{sandro.turriate@gmail.com}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 5
|
9
|
+
version: 0.2.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sandro Turriate
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-13 00:00:00 -04:00
|
18
18
|
default_executable: specjour
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|