features 0.1.2 → 0.1.3
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/README.markdown +86 -0
- data/Rakefile +1 -1
- data/features.gemspec +2 -2
- metadata +2 -2
data/README.markdown
CHANGED
@@ -0,0 +1,86 @@
|
|
1
|
+
# Features
|
2
|
+
|
3
|
+
A Plain Text User Stories Parser that supports native Programming Languages.
|
4
|
+
|
5
|
+
## How it works
|
6
|
+
|
7
|
+
### Features parses plain-text user story files
|
8
|
+
That files are made up of keywords (Feature:, Scenario:)
|
9
|
+
and step definitions (When I say 'Hello, World!'):
|
10
|
+
|
11
|
+
Feature: Hello World
|
12
|
+
|
13
|
+
Scenario: Say Hello World
|
14
|
+
When I say 'Hello, World!'
|
15
|
+
|
16
|
+
### Next, a TestCase File will be generated
|
17
|
+
|
18
|
+
Each Feature (User Story) will be generated as a TestCase.
|
19
|
+
Each Scenario as a test method.
|
20
|
+
The step definitions provide the test method implementations.
|
21
|
+
Regarding the above Feature, here is what the autogenerated testcases
|
22
|
+
will look like in the different languages:
|
23
|
+
|
24
|
+
* Rails:
|
25
|
+
|
26
|
+
require "/path/to/project/support/features_helper.rb"
|
27
|
+
|
28
|
+
class HelloWorldTest < FeaturesTestCaseClass
|
29
|
+
def test_SayHelloWorld
|
30
|
+
when_I_say___("Hello, World!")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
* Objective C:
|
35
|
+
|
36
|
+
#import "OMFeature.h"
|
37
|
+
|
38
|
+
@interface HelloWorldTest : OMFeature
|
39
|
+
@end
|
40
|
+
|
41
|
+
@implementation HelloWorldTest
|
42
|
+
-(void) testSayHelloWorld
|
43
|
+
{
|
44
|
+
[self When_I_say___:@"Hello, World!"];
|
45
|
+
}
|
46
|
+
@end
|
47
|
+
|
48
|
+
* Other Languages (Java, C#, C++, Python) will follow soon ...
|
49
|
+
|
50
|
+
## USAGE
|
51
|
+
|
52
|
+
## Installation
|
53
|
+
|
54
|
+
gem install features
|
55
|
+
|
56
|
+
## Contribution
|
57
|
+
|
58
|
+
* Idea?, Feature Request?, Bug? -> [Lighthouse](http://300.lighthouseapp.com/projects/xxxxxx-features/overview)
|
59
|
+
* source -> [GitHub](http://github.com/mhennemeyer/features)
|
60
|
+
* talk? -> [GoogleGroup](http://groups.google.de/group/features)
|
61
|
+
|
62
|
+
|
63
|
+
## Licence
|
64
|
+
|
65
|
+
(The MIT License)
|
66
|
+
|
67
|
+
Copyright (c) Matthias Hennemeyer
|
68
|
+
|
69
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
70
|
+
a copy of this software and associated documentation files (the
|
71
|
+
'Software'), to deal in the Software without restriction, including
|
72
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
73
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
74
|
+
permit persons to whom the Software is furnished to do so, subject to
|
75
|
+
the following conditions:
|
76
|
+
|
77
|
+
The above copyright notice and this permission notice shall be
|
78
|
+
included in all copies or substantial portions of the Software.
|
79
|
+
|
80
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
81
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
82
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
83
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
84
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
85
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
86
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
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.3') 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,11 +2,11 @@
|
|
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.3"
|
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
|
-
s.date = %q{2009-08-
|
9
|
+
s.date = %q{2009-08-31}
|
10
10
|
s.description = %q{Plaintext User Stories Parser supporting native programming languages.}
|
11
11
|
s.email = %q{mhennemeyer@me.com}
|
12
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"]
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Hennemeyer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-31 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|