test-loop 12.1.0 → 12.2.0

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/README.md CHANGED
@@ -213,7 +213,8 @@ preset does this for you):
213
213
  unless run_status.success? or run_status.signaled?
214
214
  title = 'FAIL at %s in %0.1fs' % [started_at.strftime('%r'), elapsed_time]
215
215
 
216
- message = test_file
216
+ statistics = File.readlines(log_file).grep(/^\d+ \w+,/)
217
+ message = test_file + "\n" + statistics.join
217
218
 
218
219
  Thread.new do # run in background
219
220
  system 'notify-send', '-i', 'dialog-error', title, message or
@@ -235,7 +236,8 @@ configuration file:
235
236
  title = '%s at %s in %0.1fs' %
236
237
  [success ? 'PASS' : 'FAIL', started_at.strftime('%X'), elapsed_time]
237
238
 
238
- message = test_file
239
+ statistics = File.readlines(log_file).grep(/^\d+ \w+,/)
240
+ message = test_file + "\n" + statistics.join
239
241
 
240
242
  Thread.new do # run in background
241
243
  system 'notify-send', '-i', "dialog-#{success ? 'information' : 'error'}", title, message or
@@ -260,6 +262,10 @@ Shows on-screen-display notifications for test failures.
260
262
 
261
263
  Provides support for the Ruby on Rails web framework.
262
264
 
265
+ ### require 'test-loop/coco'
266
+
267
+ Integrates the [coco](https://github.com/lkdjiin/coco) code coverage library.
268
+
263
269
  ------------------------------------------------------------------------------
264
270
  Known issues
265
271
  ------------------------------------------------------------------------------
@@ -1,3 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'test/loop'
3
3
  Test::Loop.run
4
+ raise SystemExit # prevent empty test suite run in master process
@@ -4,7 +4,8 @@ Test::Loop.after_each_test.push lambda {
4
4
  |test_file, log_file, run_status, started_at, elapsed_time|
5
5
  unless run_status.success? or run_status.signaled?
6
6
  title = 'FAIL at %s in %0.1fs' % [started_at.strftime('%r'), elapsed_time]
7
- message = test_file
7
+ statistics = File.readlines(log_file).grep(/^\d+ \w+,/)
8
+ message = test_file + "\n" + statistics.join
8
9
  Thread.new do # run in background
9
10
  system 'notify-send', '-i', 'dialog-error', title, message or
10
11
  system 'growlnotify', '-a', 'Xcode', '-m', message, title or
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: test-loop
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 12.1.0
5
+ version: 12.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Suraj N. Kurapati
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-04-30 00:00:00 Z
15
+ date: 2011-06-01 00:00:00 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: diff-lcs
@@ -63,10 +63,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements: []
64
64
 
65
65
  rubyforge_project:
66
- rubygems_version: 1.7.2
66
+ rubygems_version: 1.8.5
67
67
  signing_key:
68
68
  specification_version: 3
69
69
  summary: Continuous testing for Ruby with fork/eval
70
70
  test_files: []
71
71
 
72
- has_rdoc: