guard-test 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/guard/test.rb +2 -3
- data/lib/guard/test/inspector.rb +3 -1
- data/lib/guard/test/notifier.rb +2 -5
- data/lib/guard/test/runner.rb +7 -5
- data/lib/guard/test/version.rb +1 -1
- metadata +12 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ee6274ab427ac89be87d7e4ac1c032c49fb8d6f
|
4
|
+
data.tar.gz: da63a94de78940c70867ab64c8ff96bc85978989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65bd7b166b2a373fed1cf6f007317ecbc121d791d89382f565927d168474300b9c630ddd6b240138205a2b2cdf3c28b471152aaebd6f7ed3faecd226967f3d97
|
7
|
+
data.tar.gz: 72d16dd4772206a5da9eb63f944d2f8975500a419fc0b30253a0e407350fa61ca0a959f11e72da7ed3eec773354939226099e81da6f0457802378ef29e044ad6
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Guard::Test
|
2
2
|
|
3
|
-
[![Gem Version](https://
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/guard-test.svg?style=flat)](https://rubygems.org/gems/guard-test) [![Build Status](https://travis-ci.org/guard/guard-test.svg?branch=master)](https://travis-ci.org/guard/guard-test) [![Dependency Status](https://gemnasium.com/guard/guard-test.svg)](https://gemnasium.com/guard/guard-test) [![Code Climate](https://codeclimate.com/github/guard/guard-test/badges/gpa.svg)](https://codeclimate.com/github/guard/guard-test) [![Test Coverage](https://codeclimate.com/github/guard/guard-test/badges/coverage.svg)](https://codeclimate.com/github/guard/guard-test)
|
4
4
|
|
5
5
|
Guard::Test allows to automatically & intelligently launch tests when files are modified or created.
|
6
6
|
|
7
7
|
* Compatible with Test::Unit 2.
|
8
|
-
* Tested against Ruby 1.9.3, 2.0.0, Rubinius & JRuby (1.9 mode only).
|
8
|
+
* Tested against Ruby 1.9.3, 2.0.0, 2.1.0, 2.2.0, Rubinius & JRuby (1.9 mode only).
|
9
9
|
|
10
10
|
## Install
|
11
11
|
|
data/lib/guard/test.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
require 'guard'
|
2
|
-
require 'guard/plugin'
|
1
|
+
require 'guard/compat/plugin'
|
3
2
|
require 'guard/test/version'
|
4
3
|
require 'test/unit/version'
|
5
4
|
|
@@ -24,7 +23,7 @@ module Guard
|
|
24
23
|
end
|
25
24
|
|
26
25
|
def start
|
27
|
-
::
|
26
|
+
Compat::UI.info("Guard::Test #{TestVersion::VERSION} is running, " +
|
28
27
|
"with Test::Unit #{::Test::Unit::VERSION}!", reset: true)
|
29
28
|
run_all if @options[:all_on_start]
|
30
29
|
end
|
data/lib/guard/test/inspector.rb
CHANGED
data/lib/guard/test/notifier.rb
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
require '
|
2
|
-
require 'guard'
|
3
|
-
require 'guard/plugin'
|
4
|
-
require 'guard/notifier'
|
1
|
+
require 'guard/compat/plugin'
|
5
2
|
|
6
3
|
module Guard
|
7
4
|
class Test < Plugin
|
@@ -9,7 +6,7 @@ module Guard
|
|
9
6
|
|
10
7
|
class << self
|
11
8
|
def notify(result, elapsed_time)
|
12
|
-
::
|
9
|
+
Compat::UI.notify(
|
13
10
|
summary(result) + "\n\n" + duration(elapsed_time),
|
14
11
|
title: "Test::Unit results",
|
15
12
|
image: result.passed? ? :success : :failed
|
data/lib/guard/test/runner.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
require 'guard/compat/plugin'
|
2
|
+
|
1
3
|
module Guard
|
2
|
-
class Test
|
4
|
+
class Test < Plugin
|
3
5
|
class Runner
|
4
6
|
|
5
7
|
attr_reader :options
|
@@ -20,7 +22,7 @@ module Guard
|
|
20
22
|
def run(paths, opts = {})
|
21
23
|
return true if paths.empty?
|
22
24
|
|
23
|
-
::
|
25
|
+
Compat::UI.info(opts[:message] || "Running: #{paths.join(' ')}", reset: true)
|
24
26
|
|
25
27
|
system(test_unit_command(paths))
|
26
28
|
end
|
@@ -43,7 +45,7 @@ module Guard
|
|
43
45
|
require 'spork-testunit'
|
44
46
|
rescue LoadError
|
45
47
|
end
|
46
|
-
::
|
48
|
+
Compat::UI.info('Using testdrb to run the tests') if @drb
|
47
49
|
end
|
48
50
|
@drb
|
49
51
|
end
|
@@ -51,7 +53,7 @@ module Guard
|
|
51
53
|
def zeus?
|
52
54
|
if @zeus.nil?
|
53
55
|
@zeus = options[:zeus]
|
54
|
-
::
|
56
|
+
Compat::UI.info('Using zeus to run the tests') if @zeus
|
55
57
|
end
|
56
58
|
@zeus
|
57
59
|
end
|
@@ -59,7 +61,7 @@ module Guard
|
|
59
61
|
def spring?
|
60
62
|
if @spring.nil?
|
61
63
|
@spring = options[:spring]
|
62
|
-
::
|
64
|
+
Compat::UI.info('Using spring to run the tests') if @spring
|
63
65
|
end
|
64
66
|
@spring
|
65
67
|
end
|
data/lib/guard/test/version.rb
CHANGED
metadata
CHANGED
@@ -1,71 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rémy Coutable
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: test-unit
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: guard-compat
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
45
|
+
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '1.6'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - "
|
52
|
+
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '1.6'
|
69
55
|
description: Guard::Test automatically run your tests on file modification.
|
70
56
|
email: remy@rymai.me
|
71
57
|
executables: []
|