testowl 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,8 @@ module Testowl
8
8
  end
9
9
 
10
10
  def add(files)
11
- @files_list << [files].flatten
11
+ array = [files].flatten
12
+ @files_list << array unless array.empty?
12
13
  end
13
14
 
14
15
  def run
@@ -18,6 +19,7 @@ module Testowl
18
19
  files_run = []
19
20
  begin
20
21
  @files_list.each do |files|
22
+ puts "Running #{files.inspect}"
21
23
  result = @runner.run(files)
22
24
  files_run += files
23
25
  test_count += result[0]
@@ -25,7 +27,9 @@ module Testowl
25
27
  seconds += result[2]
26
28
  break if fail_count > 0
27
29
  end
28
- if test_count == 0
30
+ if @files_list.empty?
31
+ puts "No tests found"
32
+ elsif test_count == 0
29
33
  Growl.grr "Empty Test", "No tests run", seconds, :error, files_run, @reason
30
34
  return false
31
35
  elsif fail_count > 0
@@ -1,3 +1,3 @@
1
1
  module Testowl
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testowl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bill Horsman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-30 00:00:00 -07:00
18
+ date: 2011-07-01 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency