autotest 4.4.5 → 4.4.6
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.txt +3 -708
- data/Manifest.txt +4 -0
- data/README.txt +43 -0
- data/Rakefile +10 -60
- metadata +80 -46
- data/.autotest +0 -18
- data/.gitignore +0 -1
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -38
- data/Readme.md +0 -95
- data/VERSION +0 -1
- data/articles/getting_started_with_autotest.html +0 -533
- data/autotest.gemspec +0 -62
- data/bin/autotest +0 -67
- data/bin/unit_diff +0 -44
- data/example_dot_autotest.rb +0 -12
- data/lib/autotest.rb +0 -724
- data/lib/autotest/autoupdate.rb +0 -26
- data/lib/autotest/once.rb +0 -9
- data/lib/autotest/rcov.rb +0 -27
- data/lib/autotest/restart.rb +0 -12
- data/lib/autotest/timestamp.rb +0 -9
- data/lib/unit_diff.rb +0 -274
- data/test/helper.rb +0 -6
- data/test/test_autotest.rb +0 -515
- data/test/test_autotest_integration.rb +0 -95
- data/test/test_unit_diff.rb +0 -335
data/Manifest.txt
ADDED
data/README.txt
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
= autotest
|
2
|
+
|
3
|
+
* http://www.zenspider.com/ZSS/Products/ZenTest/
|
4
|
+
* http://rubyforge.org/projects/zentest/
|
5
|
+
* mailto:ryand-ruby@zenspider.com
|
6
|
+
|
7
|
+
== DESCRIPTION:
|
8
|
+
|
9
|
+
This is a stub gem to fix the confusion caused by autotest being part
|
10
|
+
of the ZenTest suite.
|
11
|
+
|
12
|
+
== REQUIREMENTS:
|
13
|
+
|
14
|
+
* ZenTest
|
15
|
+
|
16
|
+
== INSTALL:
|
17
|
+
|
18
|
+
* sudo gem install autotest
|
19
|
+
|
20
|
+
== LICENSE:
|
21
|
+
|
22
|
+
(The MIT License)
|
23
|
+
|
24
|
+
Copyright (c) Ryan Davis, seattle.rb
|
25
|
+
|
26
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
27
|
+
a copy of this software and associated documentation files (the
|
28
|
+
'Software'), to deal in the Software without restriction, including
|
29
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
30
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
31
|
+
permit persons to whom the Software is furnished to do so, subject to
|
32
|
+
the following conditions:
|
33
|
+
|
34
|
+
The above copyright notice and this permission notice shall be
|
35
|
+
included in all copies or substantial portions of the Software.
|
36
|
+
|
37
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
38
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
39
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
40
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
41
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
42
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
43
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -1,67 +1,17 @@
|
|
1
|
-
|
2
|
-
$LOAD_PATH << 'lib'
|
1
|
+
# -*- ruby -*-
|
3
2
|
|
4
|
-
|
5
|
-
require
|
6
|
-
Rake::TestTask.new(:test) {|test| test.libs << "test"}
|
7
|
-
task :default => :test
|
3
|
+
require "rubygems"
|
4
|
+
require "hoe"
|
8
5
|
|
9
|
-
|
10
|
-
task :help do
|
11
|
-
puts `./bin/autotest --help`
|
12
|
-
end
|
13
|
-
|
14
|
-
desc "run autotest on itself"
|
15
|
-
task :autotest do
|
16
|
-
ruby "-Ilib -w ./bin/autotest"
|
17
|
-
end
|
6
|
+
Hoe.plugin :seattlerb
|
18
7
|
|
19
|
-
|
20
|
-
|
21
|
-
desc "show rcov report"
|
22
|
-
task :rcov_info do
|
23
|
-
ruby "-Ilib -S rcov --text-report --save coverage.info test/test_*.rb"
|
24
|
-
end
|
8
|
+
Hoe.spec "autotest" do
|
9
|
+
developer "Ryan Davis", "ryand-ruby@zenspider.com"
|
25
10
|
|
26
|
-
|
27
|
-
|
28
|
-
system "p4 edit example_dot_autotest.rb"
|
29
|
-
File.open "example_dot_autotest.rb", "w" do |f|
|
30
|
-
f.puts "# -*- ruby -*-"
|
31
|
-
f.puts
|
32
|
-
Dir.chdir "lib" do
|
33
|
-
Dir["autotest/*.rb"].sort.each do |s|
|
34
|
-
next if s =~ /rails|discover/
|
35
|
-
f.puts "# require '#{s[0..-4]}'"
|
36
|
-
end
|
37
|
-
end
|
11
|
+
self.version = "4.4.6"
|
12
|
+
self.rubyforge_name = "seattlerb"
|
38
13
|
|
39
|
-
|
40
|
-
|
41
|
-
Dir["lib/autotest/*.rb"].sort.each do |file|
|
42
|
-
file = File.read(file)
|
43
|
-
m = file[/module.*/].split(/ /).last rescue nil
|
44
|
-
next unless m
|
45
|
-
|
46
|
-
file.grep(/def[^(]+=/).each do |setter|
|
47
|
-
setter = setter.sub(/^ *def self\./, '').sub(/\s*=\s*/, ' = ')
|
48
|
-
f.puts "# #{m}.#{setter}"
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
system "p4 diff -du example_dot_autotest.rb"
|
14
|
+
extra_deps << ["ZenTest", ">= 4.4.1"]
|
53
15
|
end
|
54
16
|
|
55
|
-
|
56
|
-
require 'jeweler'
|
57
|
-
Jeweler::Tasks.new do |gem|
|
58
|
-
gem.name = "autotest"
|
59
|
-
gem.summary = "Autotest, without ZenTest"
|
60
|
-
gem.homepage = "http://github.com/grosser/autotest"
|
61
|
-
gem.authors = ["Ryan Davis"]
|
62
|
-
end
|
63
|
-
|
64
|
-
Jeweler::GemcutterTasks.new
|
65
|
-
rescue LoadError
|
66
|
-
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
67
|
-
end
|
17
|
+
# vim: syntax=ruby
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 4
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 4.4.
|
8
|
+
- 6
|
9
|
+
version: 4.4.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ryan Davis
|
@@ -14,64 +14,101 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-12-01 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
|
21
|
-
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: ZenTest
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 4
|
29
|
+
- 4
|
30
|
+
- 1
|
31
|
+
version: 4.4.1
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rubyforge
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 2
|
43
|
+
- 0
|
44
|
+
- 4
|
45
|
+
version: 2.0.4
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: minitest
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 1
|
57
|
+
- 6
|
58
|
+
- 0
|
59
|
+
version: 1.6.0
|
60
|
+
type: :development
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: hoe
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 2
|
71
|
+
- 6
|
72
|
+
- 0
|
73
|
+
version: 2.6.0
|
74
|
+
type: :development
|
75
|
+
version_requirements: *id004
|
76
|
+
description: |-
|
77
|
+
This is a stub gem to fix the confusion caused by autotest being part
|
78
|
+
of the ZenTest suite.
|
22
79
|
email:
|
23
|
-
|
24
|
-
|
25
|
-
- unit_diff
|
26
|
-
extensions: []
|
80
|
+
- ryand-ruby@zenspider.com
|
81
|
+
executables: []
|
27
82
|
|
28
|
-
|
83
|
+
extensions: []
|
29
84
|
|
85
|
+
extra_rdoc_files:
|
86
|
+
- History.txt
|
87
|
+
- Manifest.txt
|
88
|
+
- README.txt
|
30
89
|
files:
|
31
|
-
- .autotest
|
32
|
-
- .gitignore
|
33
|
-
- Gemfile
|
34
|
-
- Gemfile.lock
|
35
90
|
- History.txt
|
91
|
+
- Manifest.txt
|
92
|
+
- README.txt
|
36
93
|
- Rakefile
|
37
|
-
- Readme.md
|
38
|
-
- VERSION
|
39
|
-
- articles/getting_started_with_autotest.html
|
40
|
-
- autotest.gemspec
|
41
|
-
- bin/autotest
|
42
|
-
- bin/unit_diff
|
43
|
-
- example_dot_autotest.rb
|
44
|
-
- lib/autotest.rb
|
45
|
-
- lib/autotest/autoupdate.rb
|
46
|
-
- lib/autotest/once.rb
|
47
|
-
- lib/autotest/rcov.rb
|
48
|
-
- lib/autotest/restart.rb
|
49
|
-
- lib/autotest/timestamp.rb
|
50
|
-
- lib/unit_diff.rb
|
51
|
-
- test/helper.rb
|
52
|
-
- test/test_autotest.rb
|
53
|
-
- test/test_autotest_integration.rb
|
54
|
-
- test/test_unit_diff.rb
|
55
94
|
has_rdoc: true
|
56
|
-
homepage: http://
|
95
|
+
homepage: http://www.zenspider.com/ZSS/Products/ZenTest/
|
57
96
|
licenses: []
|
58
97
|
|
59
98
|
post_install_message:
|
60
99
|
rdoc_options:
|
61
|
-
- --
|
100
|
+
- --main
|
101
|
+
- README.txt
|
62
102
|
require_paths:
|
63
103
|
- lib
|
64
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
105
|
requirements:
|
67
106
|
- - ">="
|
68
107
|
- !ruby/object:Gem::Version
|
69
|
-
hash: 1006120333
|
70
108
|
segments:
|
71
109
|
- 0
|
72
110
|
version: "0"
|
73
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
112
|
requirements:
|
76
113
|
- - ">="
|
77
114
|
- !ruby/object:Gem::Version
|
@@ -80,13 +117,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
117
|
version: "0"
|
81
118
|
requirements: []
|
82
119
|
|
83
|
-
rubyforge_project:
|
84
|
-
rubygems_version: 1.3.
|
120
|
+
rubyforge_project: seattlerb
|
121
|
+
rubygems_version: 1.3.6
|
85
122
|
signing_key:
|
86
123
|
specification_version: 3
|
87
|
-
summary:
|
88
|
-
test_files:
|
89
|
-
|
90
|
-
- test/helper.rb
|
91
|
-
- test/test_autotest.rb
|
92
|
-
- test/test_unit_diff.rb
|
124
|
+
summary: This is a stub gem to fix the confusion caused by autotest being part of the ZenTest suite.
|
125
|
+
test_files: []
|
126
|
+
|
data/.autotest
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require 'autotest/restart'
|
4
|
-
|
5
|
-
Autotest.add_hook :initialize do |at|
|
6
|
-
at.order = :random
|
7
|
-
at.add_exception 'coverage'
|
8
|
-
at.add_exception 'coverage.info'
|
9
|
-
|
10
|
-
%w(TestZenTest).each do |klass|
|
11
|
-
at.extra_class_map[klass] = "test/test_zentest.rb"
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
Autotest.add_hook :all_good do |at|
|
16
|
-
system "rake rcov_info"
|
17
|
-
end if ENV['RCOV']
|
18
|
-
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pkg
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
diff-lcs (1.1.2)
|
5
|
-
gemcutter (0.6.1)
|
6
|
-
git (1.2.5)
|
7
|
-
jeweler (1.4.0)
|
8
|
-
gemcutter (>= 0.1.0)
|
9
|
-
git (>= 1.2.5)
|
10
|
-
rubyforge (>= 2.0.0)
|
11
|
-
json_pure (1.4.6)
|
12
|
-
parallel (0.5.1)
|
13
|
-
parallel_tests (0.4.7)
|
14
|
-
parallel
|
15
|
-
rake (0.8.7)
|
16
|
-
rspec (2.0.1)
|
17
|
-
rspec-core (~> 2.0.1)
|
18
|
-
rspec-expectations (~> 2.0.1)
|
19
|
-
rspec-mocks (~> 2.0.1)
|
20
|
-
rspec-core (2.0.1)
|
21
|
-
rspec-expectations (2.0.1)
|
22
|
-
diff-lcs (>= 1.1.2)
|
23
|
-
rspec-mocks (2.0.1)
|
24
|
-
rspec-core (~> 2.0.1)
|
25
|
-
rspec-expectations (~> 2.0.1)
|
26
|
-
rubyforge (2.0.4)
|
27
|
-
json_pure (>= 1.1.7)
|
28
|
-
shoulda (2.11.3)
|
29
|
-
|
30
|
-
PLATFORMS
|
31
|
-
ruby
|
32
|
-
|
33
|
-
DEPENDENCIES
|
34
|
-
jeweler
|
35
|
-
parallel_tests
|
36
|
-
rake
|
37
|
-
rspec (~> 2)
|
38
|
-
shoulda
|
data/Readme.md
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
As soon as you save a file, autotest will run the matching tests.
|
2
|
-
|
3
|
-
(Extracted from ZenTest)
|
4
|
-
|
5
|
-
Improvements over ZenTest
|
6
|
-
=========================
|
7
|
-
- `-c` not run all tests after a failed test passes
|
8
|
-
- `-r` use given config file
|
9
|
-
- `-p` use parallel_tests to run tests (Test::Unit only)
|
10
|
-
- `-s` use any style you want -> `alias autospec2="autotest --style rspec2"`
|
11
|
-
- `-b` use bundle exec to run tests
|
12
|
-
- simplified test setup
|
13
|
-
- simplified packaging
|
14
|
-
- less globals
|
15
|
-
- integration tests
|
16
|
-
|
17
|
-
Install
|
18
|
-
=======
|
19
|
-
Uninstall ZenTest first, or autotest will not be found:
|
20
|
-
sudo gem uninstall ZenTest
|
21
|
-
Install:
|
22
|
-
sudo gem install autotest
|
23
|
-
Optional: Support for Test::Unit on Rails
|
24
|
-
sudo gem install autotest-rails-pure
|
25
|
-
Optional: an [ZenTest without Autotest](http://github.com/grosser/zentest) version:
|
26
|
-
sudo gem install zentest-without-autotest
|
27
|
-
|
28
|
-
|
29
|
-
Usage
|
30
|
-
=====
|
31
|
-
- go to project folder with tests
|
32
|
-
- run `autotest`
|
33
|
-
|
34
|
-
### Options
|
35
|
-
-f, --fast-start Do not run full tests at start
|
36
|
-
-p, --parallel Run tests (Test::Unit only) in parallel -- gem install parallel_tests
|
37
|
-
-c, --no-full-after-failed Do not run full tests after failed test passed
|
38
|
-
-v, --verbose Be verbose. Prints files that autotest doesn't know how to map to tests
|
39
|
-
-q, --quiet Be quiet.
|
40
|
-
-r, --rc CONFIG Path to config file. (Defaults to ~/.autotest or current_dir/.autotest)
|
41
|
-
-s, --style STYLE Which style to use, e.g. rspec, rspec2
|
42
|
-
-b, --bundle-exec Use bundle exec to run tests
|
43
|
-
-h, --help Show this.
|
44
|
-
|
45
|
-
Windows needs [diff.exe](http://gnuwin32.sourceforge.net/packages.html)
|
46
|
-
|
47
|
-
TIPS
|
48
|
-
====
|
49
|
-
- [RSpec] if you want to use `require 'spec_helper'` -> `rspec --configure autotest`
|
50
|
-
|
51
|
-
TODO
|
52
|
-
====
|
53
|
-
- add documentation for hooks
|
54
|
-
- cleanup bin/autotest Dir hacks
|
55
|
-
- remove globals from unitdiff
|
56
|
-
- add some automatic notifications e.g. autotest -n -> use any notify library found
|
57
|
-
- use watchr
|
58
|
-
|
59
|
-
|
60
|
-
License
|
61
|
-
=======
|
62
|
-
|
63
|
-
### Autotest was extracted from ZenTest and improved by:
|
64
|
-
- [Charles Roper](http://twitter.com/charlesroper)
|
65
|
-
- [Shane Liebling](http://github.com/shanel)
|
66
|
-
- [Michael Grosser](http://grosser.it)
|
67
|
-
|
68
|
-
### ZenTest Authors
|
69
|
-
- http://www.zenspider.com/ZSS/Products/ZenTest/
|
70
|
-
- http://rubyforge.org/projects/zentest/
|
71
|
-
- ryand-ruby@zenspider.com
|
72
|
-
|
73
|
-
|
74
|
-
(The MIT License)
|
75
|
-
|
76
|
-
Copyright (c) 2001-2006 Ryan Davis, Eric Hodel, Zen Spider Software
|
77
|
-
|
78
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
79
|
-
a copy of this software and associated documentation files (the
|
80
|
-
"Software"), to deal in the Software without restriction, including
|
81
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
82
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
83
|
-
permit persons to whom the Software is furnished to do so, subject to
|
84
|
-
the following conditions:
|
85
|
-
|
86
|
-
The above copyright notice and this permission notice shall be
|
87
|
-
included in all copies or substantial portions of the Software.
|
88
|
-
|
89
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
90
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
91
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
92
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
93
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
94
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
95
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|