Skip to content

Commit bfb86a8

Browse files
committed
added autotest gem
1 parent 3d82a2d commit bfb86a8

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

.autotest

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# -*- ruby -*-
2+
3+
require 'autotest/restart'
4+
5+
Autotest.add_hook :initialize do |at|
6+
# disable unit-diff for prettier minitest output
7+
# see: https://github.com/seattlerb/zentest/commit/b462a8f1dcc03528d91c77cabc15f8575d9c378c#commitcomment-418341
8+
at.unit_diff = 'cat'
9+
10+
# at.extra_files << "../some/external/dependency.rb"
11+
#
12+
# at.libs << ":../some/external"
13+
#
14+
# at.add_exception 'vendor'
15+
#
16+
# at.add_mapping(/dependency.rb/) do |f, _|
17+
# at.files_matching(/test_.*rb$/)
18+
# end
19+
#
20+
# %w(TestA TestB).each do |klass|
21+
# at.extra_class_map[klass] = "test/test_misc.rb"
22+
# end
23+
24+
end
25+
26+
# Autotest.add_hook :run_command do |at|
27+
# system "rake build"
28+
# end
29+
# -*- ruby -*-
30+
31+
# require 'autotest/autoupdate'
32+
# require 'autotest/once'
33+
# require 'autotest/rcov'
34+
# require 'autotest/restart'
35+
# require 'autotest/timestamp'
36+
37+
# Autotest::AutoUpdate.sleep_time = o
38+
# Autotest::AutoUpdate.update_cmd = o
39+
# Autotest::RCov.command = o
40+
# Autotest::RCov.pattern = o

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ group :development do
1010
gem "bundler", "~> 1.0.0"
1111
gem "jeweler", "~> 1.6.2"
1212
gem "rcov", ">= 0"
13+
gem "autotest-standalone", ">= 0"
1314
end

Gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4+
autotest-standalone (4.5.5)
45
git (1.2.5)
56
jeweler (1.6.2)
67
bundler (~> 1.0)
78
git (>= 1.2.5)
89
rake
9-
minitest (2.3.0)
10+
minitest (2.3.1)
1011
rake (0.9.2)
1112
rcov (0.9.9)
1213

1314
PLATFORMS
1415
ruby
1516

1617
DEPENDENCIES
18+
autotest-standalone
1719
bundler (~> 1.0.0)
1820
jeweler (~> 1.6.2)
1921
minitest

0 commit comments

Comments
 (0)