test-loop 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +8 -7
  2. data/bin/test-loop +3 -3
  3. metadata +3 -3
data/README.md CHANGED
@@ -20,19 +20,19 @@ Features
20
20
  * Tests *changes* in your Ruby application: avoids running (1) unchanged
21
21
  test files and (2) unchanged test blocks inside changed test files.
22
22
 
23
- * Reabsorbs test execution overhead if the test or spec helper file changes.
24
-
25
- * Evaluates test files in parallel, making full use of multiple processors.
26
-
27
- * Mostly I/O bound, so you can have it always running without CPU slowdowns.
28
-
29
23
  * Supports Test::Unit, RSpec, and any other testing framework that (1)
30
24
  reflects failures in the process' exit status and (2) is loaded by your
31
25
  application's `test/test_helper.rb` or `spec/spec_helper.rb` file.
32
26
 
27
+ * Reabsorbs test execution overhead if the test or spec helper file changes.
28
+
29
+ * Executes test files in parallel, making full use of multiple processors.
30
+
31
+ * Generally I/O bound, so you can have it always running without CPU slowdown.
32
+
33
33
  * Configurable through a `.test-loop` file in your current working directory.
34
34
 
35
- * Implemented in less than 100 (SLOC) lines of code! :-)
35
+ * Implemented in less than 100 lines (SLOC) of pure Ruby code! :-)
36
36
 
37
37
 
38
38
  Installation
@@ -44,6 +44,7 @@ As a Ruby gem:
44
44
 
45
45
  As a Git clone:
46
46
 
47
+ gem install diff
47
48
  git clone git://github.com/sunaku/test-loop
48
49
 
49
50
 
data/bin/test-loop CHANGED
@@ -55,8 +55,8 @@ begin
55
55
 
56
56
  config[:test_name_parser] ||= lambda do |line|
57
57
  case line
58
- when /^\s*def test_(\w+)/ then $1
59
- when /^\s*(test|context|should|describe|it)\b (['"])(.*?)\2/ then $3
58
+ when /^\s*def\s+test_(\w+)/ then $1
59
+ when /^\s*(test|context|should|describe|it)\b.+?(['"])(.*?)\2/ then $3
60
60
  end
61
61
  end
62
62
 
@@ -64,7 +64,7 @@ begin
64
64
  unless test_names.empty?
65
65
  test_name_pattern = test_names.map do |name|
66
66
  # sanitize string interpolation and non-method-name characters
67
- name.strip.gsub(/\#\{.*?\}/, ' ').gsub(/\W+/, '.+')
67
+ name.gsub(/\#\{.*?\}/, ' ').strip.gsub(/\W+/, '.*')
68
68
  end.join('|')
69
69
 
70
70
  case File.basename(test_file)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 5
7
7
  - 0
8
- - 1
9
- version: 5.0.1
8
+ - 2
9
+ version: 5.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Suraj N. Kurapati
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-18 00:00:00 -08:00
17
+ date: 2011-01-19 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency