testr 14.0.0 → 14.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/HISTORY.md CHANGED
@@ -1,3 +1,19 @@
1
+ ------------------------------------------------------------------------------
2
+ Version 14.0.1 (2011-10-10)
3
+ ------------------------------------------------------------------------------
4
+
5
+ Bug fixes:
6
+
7
+ * Use blue/red (not red/green) for pass/fail to accomodate the color blind.
8
+
9
+ * Incorrect test name regexp was passed down to Test::Unit. This broke
10
+ focused testing, where only changed tests in a changed test file are run.
11
+
12
+ Housekeeping:
13
+
14
+ * Make `testr-master` wait for killed worker processes before exiting.
15
+
16
+
1
17
  ------------------------------------------------------------------------------
2
18
  Version 14.0.0 (2011-10-09)
3
19
  ------------------------------------------------------------------------------
@@ -21,7 +37,7 @@ Incompatible changes:
21
37
  * Renamed the `before_each_test` configuration parameter to
22
38
  `after_fork_hooks`. Its function parameters have also changed.
23
39
 
24
- * Removed the `delay_per_iteration`, `after_each_test` configuration
40
+ * Removed the `delay_per_iteration` and `after_each_test` configuration
25
41
  parameters.
26
42
 
27
43
  * Removed the `test/loop/notify` and `test-loop/coco` libraries.
@@ -29,14 +45,17 @@ Incompatible changes:
29
45
  New features:
30
46
 
31
47
  * The file system is no longer polled to detect modified files. Instead, the
32
- file system is monitored for file modification events in a portable and
33
- efficient manner using the [Guard](https://github.com/guard/guard) library.
48
+ it is monitored for file modification events in a portable and efficient
49
+ manner using the [Guard](https://github.com/guard/guard) library.
34
50
 
35
- * Added ability to re-run passed and failed tests in the `testr` script.
51
+ * The number of processors on your system is automatically detected for the
52
+ `max_forked_workers` configuration parameter.
36
53
 
37
54
  * Added `overhead_load_paths`, `all_test_file_globs`, and `before_fork_hooks`
38
55
  configuration parameters.
39
56
 
57
+ * Added ability to re-run passed and failed tests in the `testr` script.
58
+
40
59
  Housekeeping:
41
60
 
42
61
  * The monolithic `test-loop` script has been replaced by several smaller ones
data/bin/testr CHANGED
@@ -14,7 +14,7 @@ require 'testr/client'
14
14
  message = [event.upcase, test_file, test_names.inspect, details].join(' ')
15
15
 
16
16
  color = case event
17
- when :pass then "\e[32m%s\e[0m" # green
17
+ when :pass then "\e[34m%s\e[0m" # blue
18
18
  when :fail then "\e[31m%s\e[0m" # red
19
19
  end
20
20
  message = color % message if color and STDOUT.tty?
data/bin/testr-master CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'testr/master'
3
3
  TestR::Master.loop
4
+ Process.waitall
4
5
  raise SystemExit # prevent empty test suite from running in the master process
data/lib/testr/config.rb CHANGED
@@ -46,13 +46,13 @@ module TestR
46
46
  # tell testing framework to only run the named tests inside the test file
47
47
  lambda do |worker_number, log_file, test_file, test_names|
48
48
  unless test_names.empty?
49
- regexp = Regexp.union(test_names.map {|name|
49
+ regexp = test_names.map {|name|
50
50
  # sanitize string interpolations and invalid method name characters
51
51
  name.gsub(/\#\{.*?\}/, ' ').strip.gsub(/\W+/, '.*')
52
- })
52
+ }.join('|')
53
53
 
54
54
  case File.basename(test_file)
55
- when /(\b|_)test(\b|_)/ then ARGV.push '--name', regexp.inspect
55
+ when /(\b|_)test(\b|_)/ then ARGV.push '--name', "/#{regexp}/"
56
56
  when /(\b|_)spec(\b|_)/ then ARGV.push '--example', regexp.source
57
57
  end
58
58
  end
data/lib/testr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TestR
2
- VERSION = "14.0.0"
2
+ VERSION = "14.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testr
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.0.0
4
+ version: 14.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,11 +13,11 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2011-10-09 00:00:00.000000000 Z
16
+ date: 2011-10-10 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: json
20
- requirement: &20744840 !ruby/object:Gem::Requirement
20
+ requirement: &12830300 !ruby/object:Gem::Requirement
21
21
  none: false
22
22
  requirements:
23
23
  - - ! '>='
@@ -25,10 +25,10 @@ dependencies:
25
25
  version: 1.6.1
26
26
  type: :runtime
27
27
  prerelease: false
28
- version_requirements: *20744840
28
+ version_requirements: *12830300
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: guard
31
- requirement: &20743380 !ruby/object:Gem::Requirement
31
+ requirement: &12829360 !ruby/object:Gem::Requirement
32
32
  none: false
33
33
  requirements:
34
34
  - - ! '>='
@@ -36,10 +36,10 @@ dependencies:
36
36
  version: 0.8.4
37
37
  type: :runtime
38
38
  prerelease: false
39
- version_requirements: *20743380
39
+ version_requirements: *12829360
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: diff-lcs
42
- requirement: &20742260 !ruby/object:Gem::Requirement
42
+ requirement: &12827820 !ruby/object:Gem::Requirement
43
43
  none: false
44
44
  requirements:
45
45
  - - ! '>='
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: 1.1.2
48
48
  type: :runtime
49
49
  prerelease: false
50
- version_requirements: *20742260
50
+ version_requirements: *12827820
51
51
  description: ''
52
52
  email:
53
53
  - sunaku@gmail.com