rubygene 0.3.4 → 0.4.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.
- checksums.yaml +4 -4
- data/README.md +138 -51
- data/bin/rubygene +80 -0
- data/docs/Readme_pt.md +238 -0
- data/docs/history_pt.md +100 -0
- data/history.md +65 -42
- data/lib/SkeletonMobile/features/support/results/test_failed/.gitkeep +0 -0
- data/lib/SkeletonMobile/features/support/results/test_passed/.gitkeep +0 -0
- data/lib/SkeletonRspecApi/.gitignore +3 -0
- data/lib/SkeletonRspecApi/.rspec +2 -0
- data/lib/SkeletonRspecApi/Gemfile +4 -0
- data/lib/SkeletonRspecApi/README.md +25 -0
- data/lib/SkeletonRspecApi/results/.gitkeep +0 -0
- data/lib/SkeletonRspecApi/services/.gitkeep +0 -0
- data/lib/SkeletonRspecApi/specs/spec_helper.rb +84 -0
- data/lib/SkeletonRspecWeb/.gitignore +3 -0
- data/lib/SkeletonRspecWeb/.rspec +2 -0
- data/lib/SkeletonRspecWeb/Gemfile +10 -0
- data/lib/SkeletonRspecWeb/README.md +26 -0
- data/lib/SkeletonRspecWeb/pages/.gitkeep +0 -0
- data/lib/SkeletonRspecWeb/specs/spec_helper.rb +70 -0
- data/lib/SkeletonRspecWeb/support/data/homolog.yml +1 -0
- data/lib/SkeletonRspecWeb/support/page_helper.rb +6 -0
- data/lib/SkeletonRspecWeb/support/rspec.yml +8 -0
- data/lib/generate_ruby_tests/generate_ruby_test_helper.rb +34 -0
- data/lib/generate_ruby_tests/version.rb +1 -1
- data/lib/locales/en.yml +3 -0
- data/lib/locales/pt.yml +3 -0
- data/lib/templates/specs.tt +6 -0
- data/rubygene.gemspec +1 -1
- metadata +25 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2264dac793757d1520ba13b509a333c35b07c2bb
|
4
|
+
data.tar.gz: 30492da32684e208f90a4f51a0a74d1c8503a6f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f6c91780cba0a96a42d2e30aa9c382dd88bb6e42bf7ede1bb296b1ea35795d1efb03ac0504cbadbeb32b3d18f0fb7395cc658c40ffe59434154198e601698d
|
7
|
+
data.tar.gz: '08d4372fc424d85fa13d02e8c8f7b17d01795128baf7e2d0bea3481fee318e00cf66e899a63379f2e11820bce934b99490a5bded89d9ba78e8649dcc6318feea'
|
data/README.md
CHANGED
@@ -3,159 +3,246 @@
|
|
3
3
|
[](https://codeclimate.com/github/brunobatista25/RubyGene/test_coverage)
|
4
4
|
[](https://codeclimate.com/github/brunobatista25/RubyGene/maintainability)
|
5
5
|
|
6
|
-
#
|
6
|
+
# Readme version translate
|
7
7
|
|
8
|
-
|
8
|
+
Version [Portuguese-br] (https://github.com/brunobatista25/RubyGene/blob/master/docs/Readme_pt.md)
|
9
|
+
|
10
|
+
# Update Information
|
11
|
+
|
12
|
+
Case needs to know what was added or removed from the gem just access
|
13
|
+
[Update History](https://github.com/brunobatista25/RubyGene/blob/master/history.md)
|
9
14
|
|
10
15
|
|
11
16
|
# RubyGene
|
12
17
|
|
13
|
-
|
18
|
+
The aim of RubyGene is to generate test automation projects already configured for a Web, Mobile or Api project. All of them based on the structure of a cucumber and Rspec project, page objects and reports.
|
14
19
|
|
15
|
-
##
|
20
|
+
## Installation
|
16
21
|
|
17
|
-
|
22
|
+
Add this command to the terminal:
|
18
23
|
|
19
24
|
```ruby
|
20
25
|
gem install rubygene
|
21
26
|
```
|
22
27
|
|
23
|
-
#
|
28
|
+
# Using gem
|
24
29
|
|
30
|
+
# In a project with Cucumber
|
25
31
|
|
26
|
-
##
|
32
|
+
## Generate a web project
|
27
33
|
|
28
34
|
```ruby
|
29
35
|
rubygene new_web nome_do_projeto
|
30
36
|
```
|
31
37
|
|
32
|
-
|
38
|
+
Where will generate a project of this model, already with everything configured:
|
33
39
|
|
34
|
-
Specfications:
|
40
|
+
Specfications: Where is the functionality of the project?
|
35
41
|
|
36
|
-
Steps:
|
42
|
+
Steps: Where the actual tests are performed;
|
37
43
|
|
38
|
-
Pages:
|
44
|
+
Pages: Where is mapped the elements and methods of a particular page;
|
39
45
|
|
40
|
-
Support:
|
46
|
+
Support: Where is the project settings?
|
41
47
|
|
42
|
-
Results:
|
48
|
+
Results: Where is the result of the tests and reports.
|
49
|
+
|
50
|
+
## Generate an API project
|
43
51
|
|
44
|
-
## Gerar um projeto Api
|
45
52
|
|
46
53
|
```ruby
|
47
54
|
rubygene new_api nome_do_projeto
|
48
55
|
```
|
49
56
|
|
50
|
-
|
57
|
+
Where will generate a project of this model, already with everything configured:
|
51
58
|
|
52
|
-
Specfications:
|
59
|
+
Specfications: Where is the functionality of the project?
|
53
60
|
|
54
|
-
Steps:
|
61
|
+
Steps: Where the actual tests are performed;
|
55
62
|
|
56
|
-
Services:
|
63
|
+
Services: Where the service settings are;
|
57
64
|
|
58
|
-
Support:
|
65
|
+
Support: Where is the project settings?
|
59
66
|
|
60
|
-
Results:
|
67
|
+
Results: Where is the result of the tests and reports.
|
61
68
|
|
62
|
-
##
|
69
|
+
## Generate a Mobile project
|
63
70
|
|
64
71
|
```ruby
|
65
72
|
rubygene new_mobile nome_do_projeto
|
66
73
|
```
|
67
74
|
|
68
|
-
|
75
|
+
Where will generate a project of this model, already with everything configured:
|
76
|
+
|
77
|
+
Specfications: Where is the functionality of the project?
|
69
78
|
|
70
|
-
|
79
|
+
Steps: Where the actual tests are performed;
|
71
80
|
|
72
|
-
|
81
|
+
Screens: Where is mapped the elements and methods of a given screen;
|
73
82
|
|
74
|
-
|
83
|
+
Support: Where is the project settings?
|
75
84
|
|
76
|
-
|
85
|
+
Results: Where is the result of the tests and reports.
|
77
86
|
|
78
|
-
|
87
|
+
And it is also possible to generate the steps, features, services, pages etc ... alone
|
79
88
|
|
80
|
-
|
89
|
+
## Generate a step
|
81
90
|
|
82
|
-
## Gerar um step
|
83
91
|
|
84
92
|
```ruby
|
85
93
|
rubygene generate step nome_do_step
|
86
94
|
```
|
87
95
|
|
88
|
-
##
|
96
|
+
## Generate a feature
|
97
|
+
|
89
98
|
|
90
99
|
```ruby
|
91
100
|
rubygene generate feature nome_da_feature
|
92
101
|
```
|
93
102
|
|
94
|
-
##
|
103
|
+
## Generate a page
|
95
104
|
|
96
105
|
```ruby
|
97
106
|
rubygene generate page nome_da_page
|
98
107
|
```
|
99
108
|
|
100
|
-
##
|
109
|
+
## Generate a screens
|
101
110
|
|
102
111
|
```ruby
|
103
112
|
rubygene generate screen nome_da_screen
|
104
113
|
```
|
105
114
|
|
106
|
-
##
|
115
|
+
## Generate a services
|
116
|
+
|
107
117
|
|
108
118
|
```ruby
|
109
119
|
rubygene generate service nome_do_service
|
110
120
|
```
|
111
121
|
|
112
|
-
|
122
|
+
Now if you need to create a feature, page and step, you also have a shortcut to it :)
|
113
123
|
|
114
|
-
##
|
124
|
+
## Generate feature,page,step
|
115
125
|
|
116
126
|
```ruby
|
117
127
|
rubygene generate all_web nome_do_arquivo
|
118
128
|
```
|
119
129
|
|
120
|
-
|
130
|
+
Now if you need to create a feature, screens and step also have a shortcut to this :)
|
121
131
|
|
122
|
-
##
|
132
|
+
## Generate feature,screens,step
|
123
133
|
|
124
134
|
```ruby
|
125
135
|
rubygene generate all_mobile nome_do_arquivo
|
126
136
|
```
|
127
137
|
|
128
|
-
|
138
|
+
Now if you need to create a feature, services and step also has a shortcut to it :)
|
129
139
|
|
130
|
-
##
|
140
|
+
## Generate feature,services,step
|
131
141
|
|
132
142
|
```ruby
|
133
143
|
rubygene generate all_api nome_do_arquivo
|
134
144
|
```
|
135
145
|
|
136
|
-
|
146
|
+
By default everything is generated in English if you need to use `--lang=pt`
|
137
147
|
|
138
148
|
```ruby
|
139
149
|
rubygene generate all_api nome_do_arquivo --lang=pt
|
140
150
|
```
|
141
151
|
|
142
|
-
|
152
|
+
# In an Rspec project
|
153
|
+
|
154
|
+
## Generate a web project
|
155
|
+
|
156
|
+
```ruby
|
157
|
+
rubygene new_rspec_web nome_do_projeto
|
158
|
+
```
|
159
|
+
|
160
|
+
Where will generate a project of this model, already with everything configured:
|
143
161
|
|
144
|
-
|
145
|
-
- Adicionar gerador de projeto calabash
|
146
|
-
- Adicionar gerador para projetos Rspec pra Web, Mobile e Api.
|
147
|
-
- Adicionar gerador de drivers(baixar o driver específico e instalar no local correto.)
|
162
|
+
Specs: Where the actual tests are performed;
|
148
163
|
|
149
|
-
|
164
|
+
Pages: Where is mapped the elements and methods of a particular page;
|
150
165
|
|
151
|
-
|
166
|
+
Support: Where is the project settings?
|
152
167
|
|
153
|
-
|
168
|
+
Results: Where is the result of the tests and reports.
|
154
169
|
|
155
|
-
|
170
|
+
## Generate an API project
|
171
|
+
|
172
|
+
```ruby
|
173
|
+
rubygene new_rspec_api nome_do_projeto
|
174
|
+
```
|
175
|
+
|
176
|
+
Where will generate a project of this model, already with everything configured:
|
177
|
+
|
178
|
+
Specs: Where the actual tests are performed;
|
179
|
+
|
180
|
+
Services: Where the service settings are;
|
181
|
+
|
182
|
+
Support: Where is the project settings?
|
183
|
+
|
184
|
+
Results: Where is the result of the tests and reports.
|
185
|
+
|
186
|
+
|
187
|
+
## Generate a spec
|
188
|
+
|
189
|
+
```ruby
|
190
|
+
rubygene generate spec nome_do_spec
|
191
|
+
```
|
192
|
+
|
193
|
+
## Generate a page
|
194
|
+
|
195
|
+
```ruby
|
196
|
+
rubygene generate rspec_page nome_da_page
|
197
|
+
```
|
198
|
+
|
199
|
+
## Generate a services
|
200
|
+
|
201
|
+
```ruby
|
202
|
+
rubygene generate rspec_service nome_do_service
|
203
|
+
```
|
204
|
+
|
205
|
+
Now if you need to create a page and spec you also have a shortcut to it :)
|
206
|
+
|
207
|
+
## Generate page,spec
|
208
|
+
|
209
|
+
```ruby
|
210
|
+
rubygene generate all_web_rspec nome_do_arquivo
|
211
|
+
```
|
212
|
+
|
213
|
+
Now if you need to create a services and spec it also has a shortcut to it :)
|
214
|
+
|
215
|
+
## Generate services,spec
|
216
|
+
|
217
|
+
```ruby
|
218
|
+
rubygene generate all_api_rspec nome_do_arquivo
|
219
|
+
```
|
220
|
+
|
221
|
+
By default everything is generated in English if you need to use `--lang=pt`
|
222
|
+
|
223
|
+
```ruby
|
224
|
+
rubygene generate all_api_rspec nome_do_arquivo --lang=pt
|
225
|
+
```
|
226
|
+
|
227
|
+
## For next versions
|
228
|
+
|
229
|
+
- Add generator to JsonSchema
|
230
|
+
- Add calabash project generator
|
231
|
+
- Add generator for Rspec projects to Mobile.
|
232
|
+
- Add driver generator (download specific driver and install in the correct location)
|
233
|
+
|
234
|
+
## Contribution
|
235
|
+
|
236
|
+
Bug reports and receiving requests are welcome on GitHub at
|
237
|
+
https://github.com/brunobatista25/rubygene. This project is intended to be a safe and welcoming space for collaboration, and taxpayers are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
238
|
+
|
239
|
+
## License
|
240
|
+
|
241
|
+
The gem is available as open source under the terms of
|
156
242
|
[MIT License](https://opensource.org/licenses/MIT).
|
157
243
|
|
158
|
-
##
|
244
|
+
## Code of conduct
|
245
|
+
|
159
246
|
|
160
|
-
|
247
|
+
Everyone who interacts with the RubyGene project codebases, problem trackers, chat rooms, and mailing lists is expected to follow the
|
161
248
|
[code of conduct](https://github.com/brunobatista25/rubygene/blob/master/CODE_OF_CONDUCT.md).
|
data/bin/rubygene
CHANGED
@@ -36,6 +36,16 @@ module GeneCapybara
|
|
36
36
|
create_steps_file name
|
37
37
|
end
|
38
38
|
|
39
|
+
desc 'spec [RESOURCE_NAME]', 'Generates a spec'
|
40
|
+
option :lang,
|
41
|
+
banner: 'any of the gherkin supported languages',
|
42
|
+
default: :en
|
43
|
+
def spec(name)
|
44
|
+
I18n.config.default_locale = options[:lang]
|
45
|
+
in_root_project_folder_rspec?
|
46
|
+
create_spec_file name
|
47
|
+
end
|
48
|
+
|
39
49
|
desc 'page [RESOURCE_NAME]', 'Generates pages'
|
40
50
|
option :lang,
|
41
51
|
banner: 'any of the gherkin supported languages',
|
@@ -46,6 +56,16 @@ module GeneCapybara
|
|
46
56
|
create_page_file name
|
47
57
|
end
|
48
58
|
|
59
|
+
desc 'spec [RESOURCE_NAME]', 'Generates a spec'
|
60
|
+
option :lang,
|
61
|
+
banner: 'any of the gherkin supported languages',
|
62
|
+
default: :en
|
63
|
+
def rspec_page(name)
|
64
|
+
I18n.config.default_locale = options[:lang]
|
65
|
+
in_root_project_folder_rspec?
|
66
|
+
create_page_rspec_file name
|
67
|
+
end
|
68
|
+
|
49
69
|
desc 'screens [RESOURCE_NAME]', 'Generates screens'
|
50
70
|
option :lang,
|
51
71
|
banner: 'any of the gherkin supported languages',
|
@@ -66,6 +86,16 @@ module GeneCapybara
|
|
66
86
|
create_service_file name
|
67
87
|
end
|
68
88
|
|
89
|
+
desc 'services [RESOURCE_NAME]', 'Generates services'
|
90
|
+
option :lang,
|
91
|
+
banner: 'any of the gherkin supported languages',
|
92
|
+
default: :en
|
93
|
+
def rspec_service(name)
|
94
|
+
I18n.config.default_locale = options[:lang]
|
95
|
+
in_root_project_folder_rspec?
|
96
|
+
create_service_rspec_file name
|
97
|
+
end
|
98
|
+
|
69
99
|
desc 'all_web [RESOURCE_NAME]', 'Generates features, steps and pages'
|
70
100
|
option :lang,
|
71
101
|
banner: 'any of the gherkin supported languages',
|
@@ -102,6 +132,28 @@ module GeneCapybara
|
|
102
132
|
create_service_file name
|
103
133
|
end
|
104
134
|
|
135
|
+
desc 'all_api [RESOURCE_NAME]', 'Generates feature and steps'
|
136
|
+
option :lang,
|
137
|
+
banner: 'any of the gherkin supported languages',
|
138
|
+
default: :en
|
139
|
+
def all_api_rspec(name)
|
140
|
+
I18n.config.default_locale = options[:lang]
|
141
|
+
in_root_project_folder_rspec?
|
142
|
+
create_service_rspec_file name
|
143
|
+
create_spec_file name
|
144
|
+
end
|
145
|
+
|
146
|
+
desc 'all_web [RESOURCE_NAME]', 'Generates features, steps and pages'
|
147
|
+
option :lang,
|
148
|
+
banner: 'any of the gherkin supported languages',
|
149
|
+
default: :en
|
150
|
+
def all_web_rspec(name)
|
151
|
+
I18n.config.default_locale = options[:lang]
|
152
|
+
in_root_project_folder_rspec?
|
153
|
+
create_page_rspec_file name
|
154
|
+
create_spec_file name
|
155
|
+
end
|
156
|
+
|
105
157
|
def self.source_root
|
106
158
|
File.join(File.dirname(__FILE__), '../lib/templates')
|
107
159
|
end
|
@@ -164,6 +216,34 @@ module GeneCapybara
|
|
164
216
|
'../lib/SkeletonMobile'), name
|
165
217
|
end
|
166
218
|
|
219
|
+
desc 'new_rspec_web PROJECT_NAME',
|
220
|
+
'Generates the structure of a new project that uses '\
|
221
|
+
'Capybara, SitePrism, Selenium and Rspec'
|
222
|
+
option :lang,
|
223
|
+
banner: 'any of the gherkin supported languages',
|
224
|
+
default: :en
|
225
|
+
def new_rspec_web(name)
|
226
|
+
I18n.config.default_locale = options[:lang]
|
227
|
+
# Thor sera responsavel por procurar
|
228
|
+
# arquivos e possiveis conflitos
|
229
|
+
directory File.join(File.dirname(__FILE__),
|
230
|
+
'../lib/SkeletonRspecWeb'), name
|
231
|
+
end
|
232
|
+
|
233
|
+
desc 'new_rspec_api PROJECT_NAME',
|
234
|
+
'Generates the structure of a new project that uses '\
|
235
|
+
'Capybara, SitePrism, Selenium and Rspec'
|
236
|
+
option :lang,
|
237
|
+
banner: 'any of the gherkin supported languages',
|
238
|
+
default: :en
|
239
|
+
def new_rspec_api(name)
|
240
|
+
I18n.config.default_locale = options[:lang]
|
241
|
+
# Thor sera responsavel por procurar
|
242
|
+
# arquivos e possiveis conflitos
|
243
|
+
directory File.join(File.dirname(__FILE__),
|
244
|
+
'../lib/SkeletonRspecApi'), name
|
245
|
+
end
|
246
|
+
|
167
247
|
desc 'version', 'Shows the gem version'
|
168
248
|
def version
|
169
249
|
puts "GeneCapybara Version #{GenerateRubyTests::VERSION}"
|
data/docs/Readme_pt.md
ADDED
@@ -0,0 +1,238 @@
|
|
1
|
+
[](https://badge.fury.io/rb/rubygene)
|
2
|
+
[](https://travis-ci.org/brunobatista25/RubyGene)
|
3
|
+
[](https://codeclimate.com/github/brunobatista25/RubyGene/test_coverage)
|
4
|
+
[](https://codeclimate.com/github/brunobatista25/RubyGene/maintainability)
|
5
|
+
|
6
|
+
|
7
|
+
# Informação sobre atualizaçōes
|
8
|
+
|
9
|
+
Case precise saber o que foi adicionado ou removido da gem basta acessar [Historico de Atualização](https://github.com/brunobatista25/RubyGene/blob/master/history.md)
|
10
|
+
|
11
|
+
|
12
|
+
# RubyGene
|
13
|
+
|
14
|
+
O intuito da RubyGene é conseguir gerar projetos de automação de testes já configurados para um projeto Web, Mobile ou Api. Todos eles baseados na estrutura de um projeto em cucumber, Rspec, page objects e relatórios.
|
15
|
+
|
16
|
+
## Instalação
|
17
|
+
|
18
|
+
Adicione este comando no terminal:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
gem install rubygene
|
22
|
+
```
|
23
|
+
|
24
|
+
# Usando a gem
|
25
|
+
|
26
|
+
# Em um projeto com Cucumber
|
27
|
+
|
28
|
+
## Gerar um projeto Web
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
rubygene new_web nome_do_projeto
|
32
|
+
```
|
33
|
+
|
34
|
+
Onde irá gerar um projeto deste modelo, já com tudo configurado:
|
35
|
+
|
36
|
+
Specfications: Onde fica as funcionalidades do projeto;
|
37
|
+
|
38
|
+
Steps: Onde são realizados os testes de fato;
|
39
|
+
|
40
|
+
Pages: Onde fica mapeado os elementos e metódos de uma determinada página;
|
41
|
+
|
42
|
+
Support: Onde fica as configuraçōes do projeto;
|
43
|
+
|
44
|
+
Results: Onde fica o resultado dos testes e relatórios.
|
45
|
+
|
46
|
+
## Gerar um projeto Api
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
rubygene new_api nome_do_projeto
|
50
|
+
```
|
51
|
+
|
52
|
+
Onde irá gerar um projeto deste modelo, já com tudo configurado:
|
53
|
+
|
54
|
+
Specfications: Onde fica as funcionalidades do projeto;
|
55
|
+
|
56
|
+
Steps: Onde são realizados os testes de fato;
|
57
|
+
|
58
|
+
Services: Onde fica as configuraçōes do serviço;
|
59
|
+
|
60
|
+
Support: Onde fica as configuraçōes do projeto;
|
61
|
+
|
62
|
+
Results: Onde fica o resultado dos testes e relatórios.
|
63
|
+
|
64
|
+
## Gerar um projeto Mobile
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
rubygene new_mobile nome_do_projeto
|
68
|
+
```
|
69
|
+
|
70
|
+
Onde irá gerar um projeto deste modelo, já com tudo configurado:
|
71
|
+
|
72
|
+
Specfications: Onde fica as funcionalidades do projeto;
|
73
|
+
|
74
|
+
Steps: Onde são realizados os testes de fato;
|
75
|
+
|
76
|
+
Screens: Onde fica mapeado os elementos e metódos de uma determinada screen;
|
77
|
+
|
78
|
+
Support: Onde fica as configuraçōes do projeto;
|
79
|
+
|
80
|
+
Results: Onde fica o resultado dos testes e relatórios.
|
81
|
+
|
82
|
+
E tambem é possivel gerar os steps,features,services,pages etc... sozinhos
|
83
|
+
|
84
|
+
## Gerar um step
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
rubygene generate step nome_do_step
|
88
|
+
```
|
89
|
+
|
90
|
+
## Gerar um feature
|
91
|
+
|
92
|
+
```ruby
|
93
|
+
rubygene generate feature nome_da_feature
|
94
|
+
```
|
95
|
+
|
96
|
+
## Gerar um page
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
rubygene generate page nome_da_page
|
100
|
+
```
|
101
|
+
|
102
|
+
## Gerar um screens
|
103
|
+
|
104
|
+
```ruby
|
105
|
+
rubygene generate screen nome_da_screen
|
106
|
+
```
|
107
|
+
|
108
|
+
## Gerar um services
|
109
|
+
|
110
|
+
```ruby
|
111
|
+
rubygene generate service nome_do_service
|
112
|
+
```
|
113
|
+
|
114
|
+
Agora se precisar criar uma feature, page e step também tem um atalho pra isso :)
|
115
|
+
|
116
|
+
## Gerar feature,page,step
|
117
|
+
|
118
|
+
```ruby
|
119
|
+
rubygene generate all_web nome_do_arquivo
|
120
|
+
```
|
121
|
+
|
122
|
+
Agora se precisar criar uma feature, screens e step também tem um atalho pra isso :)
|
123
|
+
|
124
|
+
## Gerar feature,screens,step
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
rubygene generate all_mobile nome_do_arquivo
|
128
|
+
```
|
129
|
+
|
130
|
+
Agora se precisar criar uma feature, services e step também tem um atalho pra isso :)
|
131
|
+
|
132
|
+
## Gerar feature,services,step
|
133
|
+
|
134
|
+
```ruby
|
135
|
+
rubygene generate all_api nome_do_arquivo
|
136
|
+
```
|
137
|
+
|
138
|
+
Por padrão tudo e gerado em inglês caso precise utilizar em português rode com o `--lang=pt`
|
139
|
+
|
140
|
+
```ruby
|
141
|
+
rubygene generate all_api nome_do_arquivo --lang=pt
|
142
|
+
```
|
143
|
+
|
144
|
+
# Em um projeto Rspec
|
145
|
+
|
146
|
+
## Gerar um projeto Web
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
rubygene new_rspec_web nome_do_projeto
|
150
|
+
```
|
151
|
+
|
152
|
+
Onde irá gerar um projeto deste modelo, já com tudo configurado:
|
153
|
+
|
154
|
+
Specs: Onde são realizados os testes de fato;
|
155
|
+
|
156
|
+
Pages: Onde fica mapeado os elementos e metódos de uma determinada página;
|
157
|
+
|
158
|
+
Support: Onde fica as configuraçōes do projeto;
|
159
|
+
|
160
|
+
Results: Onde fica o resultado dos testes e relatórios.
|
161
|
+
|
162
|
+
## Gerar um projeto Api
|
163
|
+
|
164
|
+
```ruby
|
165
|
+
rubygene new_rspec_api nome_do_projeto
|
166
|
+
```
|
167
|
+
|
168
|
+
Onde irá gerar um projeto deste modelo, já com tudo configurado:
|
169
|
+
|
170
|
+
Specs: Onde são realizados os testes de fato;
|
171
|
+
|
172
|
+
Services: Onde fica as configuraçōes do serviço;
|
173
|
+
|
174
|
+
Support: Onde fica as configuraçōes do projeto;
|
175
|
+
|
176
|
+
Results: Onde fica o resultado dos testes e relatórios.
|
177
|
+
|
178
|
+
|
179
|
+
## Gerar um spec
|
180
|
+
|
181
|
+
```ruby
|
182
|
+
rubygene generate spec nome_do_spec
|
183
|
+
```
|
184
|
+
|
185
|
+
## Gerar um page
|
186
|
+
|
187
|
+
```ruby
|
188
|
+
rubygene generate rspec_page nome_da_page
|
189
|
+
```
|
190
|
+
|
191
|
+
## Gerar um services
|
192
|
+
|
193
|
+
```ruby
|
194
|
+
rubygene generate rspec_service nome_do_service
|
195
|
+
```
|
196
|
+
|
197
|
+
Agora se precisar criar uma page e spec também tem um atalho pra isso :)
|
198
|
+
|
199
|
+
## Gerar page,spec
|
200
|
+
|
201
|
+
```ruby
|
202
|
+
rubygene generate all_web_rspec nome_do_arquivo
|
203
|
+
```
|
204
|
+
|
205
|
+
Agora se precisar criar uma services e spec também tem um atalho pra isso :)
|
206
|
+
|
207
|
+
## Gerar services,spec
|
208
|
+
|
209
|
+
```ruby
|
210
|
+
rubygene generate all_api_rspec nome_do_arquivo
|
211
|
+
```
|
212
|
+
|
213
|
+
Por padrão tudo e gerado em inglês caso precise utilizar em português rode com o `--lang=pt`
|
214
|
+
|
215
|
+
```ruby
|
216
|
+
rubygene generate all_api_rspec nome_do_arquivo --lang=pt
|
217
|
+
```
|
218
|
+
|
219
|
+
## Para Proximas versōes
|
220
|
+
|
221
|
+
- Adicionar gerador pra JsonSchema
|
222
|
+
- Adicionar gerador de projeto calabash
|
223
|
+
- Adicionar gerador para projetos Rspec para Mobile.
|
224
|
+
- Adicionar gerador de drivers(baixar o driver específico e instalar no local correto.)
|
225
|
+
|
226
|
+
## Contribuição
|
227
|
+
|
228
|
+
Relatórios de bugs e solicitações de recebimento são bem-vindos no GitHub em https://github.com/brunobatista25/rubygene. Este projeto destina-se a ser um espaço seguro e acolhedor para colaboração, e espera-se que os contribuintes adiram à [Contributor Covenant](http://contributor-covenant.org) Código de conduta.
|
229
|
+
|
230
|
+
## Licença
|
231
|
+
|
232
|
+
A gema está disponível como código aberto sob os termos do
|
233
|
+
[MIT License](https://opensource.org/licenses/MIT).
|
234
|
+
|
235
|
+
## Código de conduta
|
236
|
+
|
237
|
+
Espera-se que todos que interagem nas bases de código do projeto RubyGene, rastreadores de problemas, salas de bate-papo e listas de discussão sigam o
|
238
|
+
[code of conduct](https://github.com/brunobatista25/rubygene/blob/master/CODE_OF_CONDUCT.md).
|