allure_turnip 0.1.0

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.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +3 -0
  5. data/Gemfile.lock +54 -0
  6. data/README.md +68 -0
  7. data/allure_turnip.gemspec +27 -0
  8. data/lib/allure_turnip.rb +64 -0
  9. data/lib/allure_turnip/adaptor.rb +15 -0
  10. data/lib/allure_turnip/dsl.rb +73 -0
  11. data/lib/allure_turnip/formatter.rb +143 -0
  12. data/lib/allure_turnip/hooks.rb +86 -0
  13. data/lib/allure_turnip/turnip_extension.rb +17 -0
  14. data/lib/allure_turnip/version.rb +5 -0
  15. data/logo.png +0 -0
  16. data/spec/ambiguous.feature +3 -0
  17. data/spec/attach_file.feature +3 -0
  18. data/spec/autoload_steps.feature +6 -0
  19. data/spec/backgrounds.feature +6 -0
  20. data/spec/blank.feature +1 -0
  21. data/spec/errors.feature +11 -0
  22. data/spec/interpolation.feature +21 -0
  23. data/spec/multiline_string.feature +8 -0
  24. data/spec/pending.feature +3 -0
  25. data/spec/scenario_outline.feature +10 -0
  26. data/spec/scenario_outline_multiline_string_substitution.feature +13 -0
  27. data/spec/scenario_outline_table_substitution.feature +12 -0
  28. data/spec/simple_feature.feature +5 -0
  29. data/spec/spec_helper.rb +23 -0
  30. data/spec/step_calling.feature +16 -0
  31. data/spec/steps/alignment_steps.rb +23 -0
  32. data/spec/steps/autoload_steps.rb +5 -0
  33. data/spec/steps/backtick_steps.rb +10 -0
  34. data/spec/steps/dragon_steps.rb +41 -0
  35. data/spec/steps/knight_steps.rb +31 -0
  36. data/spec/steps/more_steps.rb +7 -0
  37. data/spec/steps/step_calling_steps.rb +23 -0
  38. data/spec/steps/steps.rb +132 -0
  39. data/spec/steps_for.feature +10 -0
  40. data/spec/steps_for_super.feature +16 -0
  41. data/spec/steps_with_variations.feature +17 -0
  42. data/spec/table.feature +8 -0
  43. data/spec/tags.feature +14 -0
  44. data/spec/with_backticks.feature +5 -0
  45. data/spec/with_comments.feature +12 -0
  46. metadata +187 -0
@@ -0,0 +1,10 @@
1
+ Feature: Steps for a feature
2
+ @evil
3
+ Scenario: Evil
4
+ Given the monster has an alignment
5
+ Then that alignment should be "Evil"
6
+
7
+ @neutral
8
+ Scenario: Neutral
9
+ Given the monster has an alignment
10
+ Then that alignment should be "Neutral"
@@ -0,0 +1,16 @@
1
+ Feature: Red Dragons are deadly
2
+
3
+ @dragon
4
+ Scenario:
5
+ Given there is a dragon
6
+ And there is a knight
7
+ When the dragon attacks the knight
8
+ Then the knight is alive
9
+
10
+ @red_dragon
11
+ Scenario:
12
+ Given there is a dragon
13
+ And the dragon breathes fire
14
+ And there is a knight
15
+ When the dragon attacks the knight
16
+ Then the knight is dead
@@ -0,0 +1,17 @@
1
+ Feature: steps with variations, such as alternative words or optional words
2
+ Scenario: alternative words
3
+ Given there is a strong monster
4
+ Then it should be strong
5
+ And it should be tough
6
+ Scenario: optional words
7
+ Given there is a strong monster
8
+ Then it should be badass
9
+ And it should be a badass
10
+ Scenario: optional parts of words
11
+ Given there is a strong monster
12
+ Then it should be terrible
13
+ And it should be terriblest
14
+ Scenario: putting it all together
15
+ Given there is a strong monster
16
+ Then it should have 2 terrifying hitpoints
17
+ And it has 2 hitpoint
@@ -0,0 +1,8 @@
1
+ Feature: A feature with tables
2
+ Scenario: This is a feature with a table
3
+ Given there are the following monsters:
4
+ | Name | Hitpoints |
5
+ | Blaaarg | 23 |
6
+ | Moorg | 12 |
7
+ Then "Blaaarg" should have 23 hitpoints
8
+ And "Moorg" should have 12 hitpoints
data/spec/tags.feature ADDED
@@ -0,0 +1,14 @@
1
+ @awesome
2
+ Feature: With tags
3
+ @cool
4
+ Scenario: Attack a monster with cool tag
5
+ Given there is a monster
6
+ When I attack it
7
+ Then it should die
8
+
9
+ @stealthy @wicked
10
+ Scenario: With multiple tags
11
+ Given there is a strong monster
12
+ When I attack it
13
+ And I attack it
14
+ Then it should die
@@ -0,0 +1,5 @@
1
+ Feature: A feature with backticks
2
+ Scenario: This is a feature with backticks
3
+ Given there is a monster
4
+ When I run `killall monsters`
5
+ Then it should die
@@ -0,0 +1,12 @@
1
+ # Hi.
2
+ Feature: some feature
3
+ Comments can be (almost) everywhere.
4
+ # And another comment
5
+
6
+ Scenario: some scenario
7
+ # Yet another one.
8
+ Given there is a monster
9
+ When I attack it
10
+ Then it should die
11
+ # Oh my, comments are everywhere.
12
+ # Thank you for reading.
metadata ADDED
@@ -0,0 +1,187 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: allure_turnip
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - aha-oretama
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: allure-ruby-adaptor-api
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.7.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.7.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: turnip
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Adaptor to use Allure framework along with the Turnip
84
+ email:
85
+ - sekine_y_529@msn.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - Gemfile
93
+ - Gemfile.lock
94
+ - README.md
95
+ - allure_turnip.gemspec
96
+ - lib/allure_turnip.rb
97
+ - lib/allure_turnip/adaptor.rb
98
+ - lib/allure_turnip/dsl.rb
99
+ - lib/allure_turnip/formatter.rb
100
+ - lib/allure_turnip/hooks.rb
101
+ - lib/allure_turnip/turnip_extension.rb
102
+ - lib/allure_turnip/version.rb
103
+ - logo.png
104
+ - spec/ambiguous.feature
105
+ - spec/attach_file.feature
106
+ - spec/autoload_steps.feature
107
+ - spec/backgrounds.feature
108
+ - spec/blank.feature
109
+ - spec/errors.feature
110
+ - spec/interpolation.feature
111
+ - spec/multiline_string.feature
112
+ - spec/pending.feature
113
+ - spec/scenario_outline.feature
114
+ - spec/scenario_outline_multiline_string_substitution.feature
115
+ - spec/scenario_outline_table_substitution.feature
116
+ - spec/simple_feature.feature
117
+ - spec/spec_helper.rb
118
+ - spec/step_calling.feature
119
+ - spec/steps/alignment_steps.rb
120
+ - spec/steps/autoload_steps.rb
121
+ - spec/steps/backtick_steps.rb
122
+ - spec/steps/dragon_steps.rb
123
+ - spec/steps/knight_steps.rb
124
+ - spec/steps/more_steps.rb
125
+ - spec/steps/step_calling_steps.rb
126
+ - spec/steps/steps.rb
127
+ - spec/steps_for.feature
128
+ - spec/steps_for_super.feature
129
+ - spec/steps_with_variations.feature
130
+ - spec/table.feature
131
+ - spec/tags.feature
132
+ - spec/with_backticks.feature
133
+ - spec/with_comments.feature
134
+ homepage: https://github.com/aha-oretama/allure_turnip
135
+ licenses:
136
+ - Apache-2.0
137
+ metadata: {}
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubygems_version: 3.0.2
154
+ signing_key:
155
+ specification_version: 4
156
+ summary: allure_turnip-0.1.0
157
+ test_files:
158
+ - spec/ambiguous.feature
159
+ - spec/attach_file.feature
160
+ - spec/autoload_steps.feature
161
+ - spec/backgrounds.feature
162
+ - spec/blank.feature
163
+ - spec/errors.feature
164
+ - spec/interpolation.feature
165
+ - spec/multiline_string.feature
166
+ - spec/pending.feature
167
+ - spec/scenario_outline.feature
168
+ - spec/scenario_outline_multiline_string_substitution.feature
169
+ - spec/scenario_outline_table_substitution.feature
170
+ - spec/simple_feature.feature
171
+ - spec/spec_helper.rb
172
+ - spec/step_calling.feature
173
+ - spec/steps/alignment_steps.rb
174
+ - spec/steps/autoload_steps.rb
175
+ - spec/steps/backtick_steps.rb
176
+ - spec/steps/dragon_steps.rb
177
+ - spec/steps/knight_steps.rb
178
+ - spec/steps/more_steps.rb
179
+ - spec/steps/step_calling_steps.rb
180
+ - spec/steps/steps.rb
181
+ - spec/steps_for.feature
182
+ - spec/steps_for_super.feature
183
+ - spec/steps_with_variations.feature
184
+ - spec/table.feature
185
+ - spec/tags.feature
186
+ - spec/with_backticks.feature
187
+ - spec/with_comments.feature