features 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of features might be problematic. Click here for more details.
- data/Manifest +9 -2
- data/Rakefile +1 -1
- data/features.gemspec +3 -3
- data/generators/features/USAGE +1 -0
- data/generators/features/features_generator.rb +15 -0
- data/generators/features/templates/HelloWorld.feature +4 -0
- data/generators/features/templates/custom_steps.rb +7 -0
- data/generators/features/templates/features_helper.rb +4 -0
- data/generators/features/templates/features_test_case_class.rb +3 -0
- data/generators/features/templates/run_features.rb +17 -0
- data/generators/features/templates/test_cases_file.rb +0 -0
- data/lib/features.rb +10 -0
- metadata +12 -3
- data/features.rb +0 -10
data/Manifest
CHANGED
@@ -1,8 +1,14 @@
|
|
1
1
|
Manifest
|
2
2
|
README.markdown
|
3
3
|
Rakefile
|
4
|
-
features
|
5
|
-
features.rb
|
4
|
+
generators/features/USAGE
|
5
|
+
generators/features/features_generator.rb
|
6
|
+
generators/features/templates/HelloWorld.feature
|
7
|
+
generators/features/templates/custom_steps.rb
|
8
|
+
generators/features/templates/features_helper.rb
|
9
|
+
generators/features/templates/features_test_case_class.rb
|
10
|
+
generators/features/templates/run_features.rb
|
11
|
+
generators/features/templates/test_cases_file.rb
|
6
12
|
lib/ObjC/objc_feature.rb
|
7
13
|
lib/ObjC/objc_scenario.rb
|
8
14
|
lib/ObjC/objc_step.rb
|
@@ -12,6 +18,7 @@ lib/Rails/rails_scenario.rb
|
|
12
18
|
lib/Rails/rails_step.rb
|
13
19
|
lib/Rails/rails_suite.rb
|
14
20
|
lib/feature.rb
|
21
|
+
lib/features.rb
|
15
22
|
lib/objc.rb
|
16
23
|
lib/parser.rb
|
17
24
|
lib/rails.rb
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('features', '0.1.
|
5
|
+
Echoe.new('features', '0.1.2') do |p|
|
6
6
|
p.description = "Plaintext User Stories Parser supporting native programming languages."
|
7
7
|
p.url = "http://features.rubyforge.org"
|
8
8
|
p.author = "Matthias Hennemeyer"
|
data/features.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{features}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Matthias Hennemeyer"]
|
9
9
|
s.date = %q{2009-08-30}
|
10
10
|
s.description = %q{Plaintext User Stories Parser supporting native programming languages.}
|
11
11
|
s.email = %q{mhennemeyer@me.com}
|
12
|
-
s.extra_rdoc_files = ["README.markdown", "lib/ObjC/objc_feature.rb", "lib/ObjC/objc_scenario.rb", "lib/ObjC/objc_step.rb", "lib/ObjC/objc_suite.rb", "lib/Rails/rails_feature.rb", "lib/Rails/rails_scenario.rb", "lib/Rails/rails_step.rb", "lib/Rails/rails_suite.rb", "lib/feature.rb", "lib/objc.rb", "lib/parser.rb", "lib/rails.rb", "lib/scenario.rb", "lib/step.rb", "lib/string_extension.rb", "lib/suite.rb"]
|
13
|
-
s.files = ["Manifest", "README.markdown", "Rakefile", "features.
|
12
|
+
s.extra_rdoc_files = ["README.markdown", "lib/ObjC/objc_feature.rb", "lib/ObjC/objc_scenario.rb", "lib/ObjC/objc_step.rb", "lib/ObjC/objc_suite.rb", "lib/Rails/rails_feature.rb", "lib/Rails/rails_scenario.rb", "lib/Rails/rails_step.rb", "lib/Rails/rails_suite.rb", "lib/feature.rb", "lib/features.rb", "lib/objc.rb", "lib/parser.rb", "lib/rails.rb", "lib/scenario.rb", "lib/step.rb", "lib/string_extension.rb", "lib/suite.rb"]
|
13
|
+
s.files = ["Manifest", "README.markdown", "Rakefile", "generators/features/USAGE", "generators/features/features_generator.rb", "generators/features/templates/HelloWorld.feature", "generators/features/templates/custom_steps.rb", "generators/features/templates/features_helper.rb", "generators/features/templates/features_test_case_class.rb", "generators/features/templates/run_features.rb", "generators/features/templates/test_cases_file.rb", "lib/ObjC/objc_feature.rb", "lib/ObjC/objc_scenario.rb", "lib/ObjC/objc_step.rb", "lib/ObjC/objc_suite.rb", "lib/Rails/rails_feature.rb", "lib/Rails/rails_scenario.rb", "lib/Rails/rails_step.rb", "lib/Rails/rails_suite.rb", "lib/feature.rb", "lib/features.rb", "lib/objc.rb", "lib/parser.rb", "lib/rails.rb", "lib/scenario.rb", "lib/step.rb", "lib/string_extension.rb", "lib/suite.rb", "features.gemspec"]
|
14
14
|
s.homepage = %q{http://features.rubyforge.org}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Features", "--main", "README.markdown"]
|
16
16
|
s.require_paths = ["lib"]
|
@@ -0,0 +1 @@
|
|
1
|
+
Create the supporting folders and files for 'features'.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class FeaturesGenerator < Rails::Generator::Base
|
2
|
+
def manifest
|
3
|
+
record do |m|
|
4
|
+
m.directory("test/features")
|
5
|
+
m.file("run_features.rb", "test/features/run_features.rb")
|
6
|
+
m.file("HelloWorld.feature", "test/features/HelloWorld.feature")
|
7
|
+
|
8
|
+
m.directory("test/features/support")
|
9
|
+
m.file("features_helper.rb", "test/features/support/features_helper.rb")
|
10
|
+
m.file("features_test_case_class.rb", "test/features/support/features_test_case_class.rb")
|
11
|
+
m.file("test_cases_file.rb", "test/features/support/test_cases_file.rb")
|
12
|
+
m.file("custom_steps.rb", "test/features/support/custom_steps.rb")
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "features"
|
3
|
+
|
4
|
+
current_dir = File.dirname(File.expand_path(__FILE__))
|
5
|
+
suite = RailsSuite.new({
|
6
|
+
:feature_files_path => current_dir,
|
7
|
+
:test_cases_file => current_dir + "/support/test_cases_file.rb",
|
8
|
+
:features_helper => current_dir + "/support/features_helper.rb"
|
9
|
+
})
|
10
|
+
|
11
|
+
suite.run
|
12
|
+
|
13
|
+
results = `ruby #{suite.test_cases_file}`
|
14
|
+
|
15
|
+
puts results
|
16
|
+
|
17
|
+
suite.parse_results_and_open_in_safari(results)
|
File without changes
|
data/lib/features.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
current_dir = File.dirname(File.expand_path(__FILE__))
|
2
|
+
|
3
|
+
require current_dir + "/string_extension.rb"
|
4
|
+
require current_dir + "/feature.rb"
|
5
|
+
require current_dir + "/scenario.rb"
|
6
|
+
require current_dir + "/step.rb"
|
7
|
+
require current_dir + "/suite.rb"
|
8
|
+
require current_dir + "/parser.rb"
|
9
|
+
require current_dir + "/rails.rb"
|
10
|
+
require current_dir + "/objc.rb"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Hennemeyer
|
@@ -30,6 +30,7 @@ extra_rdoc_files:
|
|
30
30
|
- lib/Rails/rails_step.rb
|
31
31
|
- lib/Rails/rails_suite.rb
|
32
32
|
- lib/feature.rb
|
33
|
+
- lib/features.rb
|
33
34
|
- lib/objc.rb
|
34
35
|
- lib/parser.rb
|
35
36
|
- lib/rails.rb
|
@@ -41,8 +42,14 @@ files:
|
|
41
42
|
- Manifest
|
42
43
|
- README.markdown
|
43
44
|
- Rakefile
|
44
|
-
- features
|
45
|
-
- features.rb
|
45
|
+
- generators/features/USAGE
|
46
|
+
- generators/features/features_generator.rb
|
47
|
+
- generators/features/templates/HelloWorld.feature
|
48
|
+
- generators/features/templates/custom_steps.rb
|
49
|
+
- generators/features/templates/features_helper.rb
|
50
|
+
- generators/features/templates/features_test_case_class.rb
|
51
|
+
- generators/features/templates/run_features.rb
|
52
|
+
- generators/features/templates/test_cases_file.rb
|
46
53
|
- lib/ObjC/objc_feature.rb
|
47
54
|
- lib/ObjC/objc_scenario.rb
|
48
55
|
- lib/ObjC/objc_step.rb
|
@@ -52,6 +59,7 @@ files:
|
|
52
59
|
- lib/Rails/rails_step.rb
|
53
60
|
- lib/Rails/rails_suite.rb
|
54
61
|
- lib/feature.rb
|
62
|
+
- lib/features.rb
|
55
63
|
- lib/objc.rb
|
56
64
|
- lib/parser.rb
|
57
65
|
- lib/rails.rb
|
@@ -59,6 +67,7 @@ files:
|
|
59
67
|
- lib/step.rb
|
60
68
|
- lib/string_extension.rb
|
61
69
|
- lib/suite.rb
|
70
|
+
- features.gemspec
|
62
71
|
has_rdoc: true
|
63
72
|
homepage: http://features.rubyforge.org
|
64
73
|
licenses: []
|
data/features.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
lib = File.dirname(__FILE__) + "/lib"
|
2
|
-
|
3
|
-
require lib + "/string_extension.rb"
|
4
|
-
require lib + "/feature.rb"
|
5
|
-
require lib + "/scenario.rb"
|
6
|
-
require lib + "/step.rb"
|
7
|
-
require lib + "/suite.rb"
|
8
|
-
require lib + "/parser.rb"
|
9
|
-
require lib + "/rails.rb"
|
10
|
-
require lib + "/objc.rb"
|