racatt 0.0.2 → 0.0.3
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.rdoc +5 -0
- data/README.md +49 -48
- data/Rakefile +2 -2
- data/lib/racatt.rb +49 -47
- data/lib/racatt/version.rb +3 -3
- data/racatt.gemspec +25 -25
- metadata +3 -3
data/History.rdoc
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== Version 0.0.3 / 2016-01-20
|
2
|
+
|
3
|
+
* Bug fix: Fixed a task scoping bug where the combined Rake task would only work if the gem's tasks were created inside of a namespace.
|
4
|
+
|
5
|
+
|
1
6
|
=== Version 0.0.2 / 2015-05-28
|
2
7
|
|
3
8
|
* Bug fix: Fixed a task dependency issue that went undetected until after the previous release.
|
data/README.md
CHANGED
@@ -1,48 +1,49 @@
|
|
1
|
-
# Racatt
|
2
|
-
|
3
|
-
Do you use RSPec to test your application? How about Cucumber? Do you, like myself, use both
|
4
|
-
and have gotten tired of writing Rake tasks for 'one click' testing for the umpteenth time? Then
|
5
|
-
search no more and enjoy some pre-written Rake tasks that do just that! You can even use command
|
6
|
-
line arguments for custom test execution!
|
7
|
-
|
8
|
-
|
9
|
-
## Installation
|
10
|
-
|
11
|
-
Add this line to your application's Gemfile:
|
12
|
-
|
13
|
-
gem 'racatt'
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install racatt
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
Just require the gem
|
26
|
-
|
27
|
-
require 'racatt'
|
28
|
-
|
29
|
-
and then call its task creation method
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
1
|
+
# Racatt
|
2
|
+
|
3
|
+
Do you use RSPec to test your application? How about Cucumber? Do you, like myself, use both
|
4
|
+
and have gotten tired of writing Rake tasks for 'one click' testing for the umpteenth time? Then
|
5
|
+
search no more and enjoy some pre-written Rake tasks that do just that! You can even use command
|
6
|
+
line arguments for custom test execution!
|
7
|
+
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
gem 'racatt'
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install racatt
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Just require the gem
|
26
|
+
|
27
|
+
require 'racatt'
|
28
|
+
|
29
|
+
and then call its task creation method in your Rakefile (or wherever it is that you
|
30
|
+
like to put your Rake tasks) in order to generate Rake tasks that can kick off a
|
31
|
+
combined RSpec and Cucumber test suite.
|
32
|
+
|
33
|
+
Racatt.create_tasks
|
34
|
+
|
35
|
+
If you want the tasks to be created in a certain namespace, simply call the creation
|
36
|
+
method from within that namespace.
|
37
|
+
|
38
|
+
namespace 'foo' do
|
39
|
+
Racatt.create_tasks
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
## Contributing
|
44
|
+
|
45
|
+
1. Fork it ( https://github.com/[my-github-username]/racatt/fork )
|
46
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
47
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
48
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
49
|
+
5. Create a new Pull Request
|
data/Rakefile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
|
data/lib/racatt.rb
CHANGED
@@ -1,47 +1,49 @@
|
|
1
|
-
require "racatt/version"
|
2
|
-
|
3
|
-
require 'cucumber/rake/task'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
|
6
|
-
|
7
|
-
module Racatt
|
8
|
-
|
9
|
-
extend Rake::DSL
|
10
|
-
|
11
|
-
|
12
|
-
def self.set_cucumber_options(options)
|
13
|
-
ENV['CUCUMBER_OPTS'] = options
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.combine_options(set_1, set_2)
|
17
|
-
set_2 ? "#{set_1} #{set_2}" : set_1
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.create_tasks
|
21
|
-
current_scope = Rake.application.current_scope.path
|
22
|
-
|
23
|
-
namespace 'cucumber' do
|
24
|
-
desc 'Run all of the Cucumber features'
|
25
|
-
task :features, [:command_options] do |_t, args|
|
26
|
-
set_cucumber_options(combine_options('-t ~@wip -t ~@off', args[:command_options]))
|
27
|
-
end
|
28
|
-
Cucumber::Rake::Task.new(:features)
|
29
|
-
end
|
30
|
-
|
31
|
-
namespace 'rspec' do
|
32
|
-
desc 'Run all of the RSpec specifications'
|
33
|
-
RSpec::Core::RakeTask.new(:specs, :command_options) do |t, args|
|
34
|
-
t.rspec_opts = "-t ~wip -t ~off "
|
35
|
-
t.rspec_opts << args[:command_options] if args[:command_options]
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
desc 'Test All The Things!'
|
40
|
-
task :test_everything, [:command_options] do |_t, args|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
end
|
1
|
+
require "racatt/version"
|
2
|
+
|
3
|
+
require 'cucumber/rake/task'
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
|
6
|
+
|
7
|
+
module Racatt
|
8
|
+
|
9
|
+
extend Rake::DSL
|
10
|
+
|
11
|
+
|
12
|
+
def self.set_cucumber_options(options)
|
13
|
+
ENV['CUCUMBER_OPTS'] = options
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.combine_options(set_1, set_2)
|
17
|
+
set_2 ? "#{set_1} #{set_2}" : set_1
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.create_tasks
|
21
|
+
current_scope = Rake.application.current_scope.path
|
22
|
+
|
23
|
+
namespace 'cucumber' do
|
24
|
+
desc 'Run all of the Cucumber features'
|
25
|
+
task :features, [:command_options] do |_t, args|
|
26
|
+
set_cucumber_options(combine_options('-t ~@wip -t ~@off', args[:command_options]))
|
27
|
+
end
|
28
|
+
Cucumber::Rake::Task.new(:features)
|
29
|
+
end
|
30
|
+
|
31
|
+
namespace 'rspec' do
|
32
|
+
desc 'Run all of the RSpec specifications'
|
33
|
+
RSpec::Core::RakeTask.new(:specs, :command_options) do |t, args|
|
34
|
+
t.rspec_opts = "-t ~wip -t ~off "
|
35
|
+
t.rspec_opts << args[:command_options] if args[:command_options]
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
desc 'Test All The Things!'
|
40
|
+
task :test_everything, [:command_options] do |_t, args|
|
41
|
+
scope_string = current_scope.empty? ? '' : "#{current_scope}:"
|
42
|
+
|
43
|
+
Rake::Task["#{scope_string}rspec:specs"].invoke(args[:command_options])
|
44
|
+
Rake::Task["#{scope_string}cucumber:features"].invoke(args[:command_options])
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
data/lib/racatt/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Racatt
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
1
|
+
module Racatt
|
2
|
+
VERSION = "0.0.3"
|
3
|
+
end
|
data/racatt.gemspec
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'racatt/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "racatt"
|
8
|
-
spec.version = Racatt::VERSION
|
9
|
-
spec.authors = ["Eric Kessler"]
|
10
|
-
spec.email = ["morrow748@gmail.com"]
|
11
|
-
spec.summary = %q{For when you want a big, easy Rake task shaped button to kick off your RSpec and Cucumber test suites.}
|
12
|
-
spec.homepage = "https://github.com/enkessler/racatt"
|
13
|
-
spec.license = "MIT"
|
14
|
-
|
15
|
-
spec.files = `git ls-files -z`.split("\x0")
|
16
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
-
spec.require_paths = ["lib"]
|
19
|
-
|
20
|
-
spec.add_dependency 'cucumber'
|
21
|
-
spec.add_dependency 'rspec'
|
22
|
-
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.6"
|
24
|
-
spec.add_development_dependency "rake"
|
25
|
-
end
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'racatt/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "racatt"
|
8
|
+
spec.version = Racatt::VERSION
|
9
|
+
spec.authors = ["Eric Kessler"]
|
10
|
+
spec.email = ["morrow748@gmail.com"]
|
11
|
+
spec.summary = %q{For when you want a big, easy Rake task shaped button to kick off your RSpec and Cucumber test suites.}
|
12
|
+
spec.homepage = "https://github.com/enkessler/racatt"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency 'cucumber'
|
21
|
+
spec.add_dependency 'rspec'
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: racatt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 1.8.
|
115
|
+
rubygems_version: 1.8.29
|
116
116
|
signing_key:
|
117
117
|
specification_version: 3
|
118
118
|
summary: For when you want a big, easy Rake task shaped button to kick off your RSpec
|