rubygene 0.3.3 → 0.3.4
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/.rspec +1 -1
- data/.travis.yml +17 -0
- data/Gemfile +1 -1
- data/README.md +6 -5
- data/bin/rubygene +0 -0
- data/history.md +23 -0
- data/lib/SkeletonMobile/features/support/hooks.rb +1 -1
- data/lib/SkeletonWeb/Gemfile +3 -3
- data/lib/SkeletonWeb/features/support/hooks.rb +1 -5
- data/lib/generate_ruby_tests/version.rb +1 -1
- data/lib/locales/pt.yml +1 -1
- data/rubygene.gemspec +1 -0
- metadata +18 -3
- /data/lib/SkeletonApi/features/support/config/{dev.yaml → dev.yml} +0 -0
- /data/lib/SkeletonApi/features/support/config/{hmg.yaml → hmg.yml} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0985a34a727089f0064800924668dbcb52705bea'
|
|
4
|
+
data.tar.gz: fbc7a50b547fc08b60a2c47a97e7a86db72eb19f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 193aa6e4899b273ae9fb9a4773e21769d80dda09ad5d719dac8b6b59d1a552daec46417622258d4b100d315034e96b7515d283c5f685a43e16b43cd49a17f9ec
|
|
7
|
+
data.tar.gz: 7cc54899132cbc97e61268f28ddebc581e1af349a444deb99916ad5eb160753f833a2a093bb8e27b99c7bba5791ee8de10955f2180ed944991fee91940a60ed0
|
data/.rspec
CHANGED
data/.travis.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
env:
|
|
2
|
+
global:
|
|
3
|
+
- CC_TEST_REPORTER_ID=f924d20fc98e97c58f91e9cb9191c7b74c0b555ab1bcfbe40624c8db6400a334
|
|
4
|
+
language: ruby
|
|
5
|
+
rvm:
|
|
6
|
+
- 2.4.2
|
|
7
|
+
before_install: gem install bundler -v 1.16.1
|
|
8
|
+
notifications:
|
|
9
|
+
- false
|
|
10
|
+
before_script:
|
|
11
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
12
|
+
- chmod +x ./cc-test-reporter
|
|
13
|
+
- ./cc-test-reporter before-build
|
|
14
|
+
scripts:
|
|
15
|
+
- bundle exec rspec
|
|
16
|
+
after_script:
|
|
17
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[](https://badge.fury.io/rb/rubygene)
|
|
2
|
-
[
|
|
2
|
+
[](https://travis-ci.org/brunobatista25/RubyGene)
|
|
3
|
+
[](https://codeclimate.com/github/brunobatista25/RubyGene/test_coverage)
|
|
3
4
|
[](https://codeclimate.com/github/brunobatista25/RubyGene/maintainability)
|
|
4
5
|
|
|
5
6
|
# Informação sobre atualizaçōes
|
|
@@ -9,7 +10,7 @@ Case precise saber o que foi adicionado ou removido da gem basta acessar [Histo
|
|
|
9
10
|
|
|
10
11
|
# RubyGene
|
|
11
12
|
|
|
12
|
-
O intuito da RubyGene é conseguir gerar projetos já configurados para um projeto Web, Mobile ou Api. Todos eles baseados na estrutura de um projeto em cucumber, page objects e relatórios.
|
|
13
|
+
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, page objects e relatórios.
|
|
13
14
|
|
|
14
15
|
## Instalação
|
|
15
16
|
|
|
@@ -30,7 +31,7 @@ rubygene new_web nome_do_projeto
|
|
|
30
31
|
|
|
31
32
|
Onde irá gerar um projeto deste modelo, já com tudo configurado:
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
Specfications: Onde fica as funcionalidades do projeto;
|
|
34
35
|
|
|
35
36
|
Steps: Onde são realizados os testes de fato;
|
|
36
37
|
|
|
@@ -48,7 +49,7 @@ rubygene new_api nome_do_projeto
|
|
|
48
49
|
|
|
49
50
|
Onde irá gerar um projeto deste modelo, já com tudo configurado:
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
Specfications: Onde fica as funcionalidades do projeto;
|
|
52
53
|
|
|
53
54
|
Steps: Onde são realizados os testes de fato;
|
|
54
55
|
|
|
@@ -66,7 +67,7 @@ rubygene new_mobile nome_do_projeto
|
|
|
66
67
|
|
|
67
68
|
Onde irá gerar um projeto deste modelo, já com tudo configurado:
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
Specfications: Onde fica as funcionalidades do projeto;
|
|
70
71
|
|
|
71
72
|
Steps: Onde são realizados os testes de fato;
|
|
72
73
|
|
data/bin/rubygene
CHANGED
|
File without changes
|
data/history.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Version 0.3.4
|
|
2
|
+
Release date: 16/09/2018
|
|
3
|
+
|
|
4
|
+
### Adicionado
|
|
5
|
+
|
|
6
|
+
- Testes unitários.
|
|
7
|
+
- Cobertura de código com simplecov.
|
|
8
|
+
|
|
9
|
+
### Corrigido
|
|
10
|
+
|
|
11
|
+
- Carregar arquivo yml da configuração de api que estava yaml
|
|
12
|
+
|
|
13
|
+
### Mudado
|
|
14
|
+
|
|
15
|
+
- SitePrism foi mudado de '2.15' para '2.15.1', devido a algumas melhorias de performance com o cucumber;
|
|
16
|
+
- Capybara versão alterada de '3.0.3' para '<3.3', versão aconselhada pelo pessoal do siteprism;
|
|
17
|
+
- Foi setado a versão do Selenium '~>3.4', versão aconselhada pelo pessoal do siteprism;
|
|
18
|
+
- Regex no Hooks para obter o nome do relatório foi reduzida para somente uma linha.
|
|
19
|
+
|
|
20
|
+
### Removido
|
|
21
|
+
|
|
22
|
+
- Nada
|
|
23
|
+
|
|
1
24
|
# Version 0.3.3
|
|
2
25
|
Release date: 14/09/2018
|
|
3
26
|
|
|
@@ -13,7 +13,7 @@ def scroll_screen(xone, yone, xtwo, ytwo)
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
After do |scenario|
|
|
16
|
-
scenario_name = scenario.name.gsub(
|
|
16
|
+
scenario_name = scenario.name.gsub(/[^A-Za-z ]/, '').gsub(/\s+/, '_')
|
|
17
17
|
|
|
18
18
|
if scenario.failed?
|
|
19
19
|
take_screenshot(scenario_name.downcase!, 'failed')
|
data/lib/SkeletonWeb/Gemfile
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
source 'http://rubygems.org'
|
|
2
2
|
|
|
3
|
-
gem 'capybara', '3.
|
|
3
|
+
gem 'capybara', '<3.3'
|
|
4
4
|
gem 'cucumber'
|
|
5
|
-
gem 'selenium-webdriver'
|
|
5
|
+
gem 'selenium-webdriver', '~>3.4'
|
|
6
6
|
gem 'rspec'
|
|
7
|
-
gem 'site_prism', '2.15'
|
|
7
|
+
gem 'site_prism', '2.15.1'
|
|
8
8
|
gem 'syntax'
|
|
9
9
|
gem 'rubocop'
|
|
10
10
|
gem 'byebug'
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
require_relative 'helper.rb'
|
|
2
2
|
|
|
3
3
|
After do |scenario|
|
|
4
|
-
scenario_name = scenario.name.gsub(
|
|
5
|
-
scenario_name = scenario_name.gsub(',', '')
|
|
6
|
-
scenario_name = scenario_name.gsub('(', '')
|
|
7
|
-
scenario_name = scenario_name.gsub(')', '')
|
|
8
|
-
scenario_name = scenario_name.gsub('#', '')
|
|
4
|
+
scenario_name = scenario.name.gsub(/[^A-Za-z ]/, '').gsub(/\s+/, '_')
|
|
9
5
|
|
|
10
6
|
if scenario.failed?
|
|
11
7
|
take_screenshot(scenario_name.downcase!, 'failed')
|
data/lib/locales/pt.yml
CHANGED
data/rubygene.gemspec
CHANGED
|
@@ -25,5 +25,6 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.add_runtime_dependency 'i18n', '~> 0.8'
|
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
28
|
+
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
|
28
29
|
spec.add_runtime_dependency 'thor', '~> 0.20.0'
|
|
29
30
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubygene
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- brunobatista25
|
|
@@ -66,6 +66,20 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '3.0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: simplecov
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: 0.16.1
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: 0.16.1
|
|
69
83
|
- !ruby/object:Gem::Dependency
|
|
70
84
|
name: thor
|
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -92,6 +106,7 @@ extra_rdoc_files: []
|
|
|
92
106
|
files:
|
|
93
107
|
- ".gitignore"
|
|
94
108
|
- ".rspec"
|
|
109
|
+
- ".travis.yml"
|
|
95
110
|
- CODE_OF_CONDUCT.md
|
|
96
111
|
- Gemfile
|
|
97
112
|
- LICENSE.txt
|
|
@@ -109,8 +124,8 @@ files:
|
|
|
109
124
|
- lib/SkeletonApi/features/services/.gitkeep
|
|
110
125
|
- lib/SkeletonApi/features/specifications/.gitkeep
|
|
111
126
|
- lib/SkeletonApi/features/steps_definitions/.gitkeep
|
|
112
|
-
- lib/SkeletonApi/features/support/config/dev.
|
|
113
|
-
- lib/SkeletonApi/features/support/config/hmg.
|
|
127
|
+
- lib/SkeletonApi/features/support/config/dev.yml
|
|
128
|
+
- lib/SkeletonApi/features/support/config/hmg.yml
|
|
114
129
|
- lib/SkeletonApi/features/support/env.rb
|
|
115
130
|
- lib/SkeletonApi/results/report.html
|
|
116
131
|
- lib/SkeletonApi/results/report.json
|
|
File without changes
|
|
File without changes
|