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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c538f78fc985f5c797b272ef22f978d7957750e8
4
- data.tar.gz: c72dffda4498490701369193c8491ae1507102ff
3
+ metadata.gz: '0985a34a727089f0064800924668dbcb52705bea'
4
+ data.tar.gz: fbc7a50b547fc08b60a2c47a97e7a86db72eb19f
5
5
  SHA512:
6
- metadata.gz: d8433c3f8f0914a0b634f8dde64f7a74ec2dd494ea484b312599de67b78d67251a34a261aecd439f5b354f6a09f6183a92a8e3c9587538479901fa65d2e4bdcc
7
- data.tar.gz: eca85b73ee4208dfdc93487c8e1908963986df1c91d687fc25d20deb773ea8a269df224120df7c5deb764e2f435a6d75162ae1d3a9b008faa8293c0735f5bb12
6
+ metadata.gz: 193aa6e4899b273ae9fb9a4773e21769d80dda09ad5d719dac8b6b59d1a552daec46417622258d4b100d315034e96b7515d283c5f685a43e16b43cd49a17f9ec
7
+ data.tar.gz: 7cc54899132cbc97e61268f28ddebc581e1af349a444deb99916ad5eb160753f833a2a093bb8e27b99c7bba5791ee8de10955f2180ed944991fee91940a60ed0
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
2
1
  --color
2
+ --warning
3
3
  --require spec_helper
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
@@ -3,4 +3,4 @@ source "https://rubygems.org"
3
3
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in generate_ruby_tests.gemspec
6
- gemspec
6
+ gemspec
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/rubygene.svg)](https://badge.fury.io/rb/rubygene)
2
- [ ![Codeship Status for brunobatista25/generate_ruby_tests](https://app.codeship.com/projects/6954dcd0-9694-0136-803d-3204db439b3c/status?branch=master)](https://app.codeship.com/projects/304920)
2
+ [![Build Status](https://travis-ci.org/brunobatista25/RubyGene.svg?branch=master)](https://travis-ci.org/brunobatista25/RubyGene)
3
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/6ac63623b0699225f219/test_coverage)](https://codeclimate.com/github/brunobatista25/RubyGene/test_coverage)
3
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/6ac63623b0699225f219/maintainability)](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
- Features: Onde fica as funcionalidades do projeto;
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
- Features: Onde fica as funcionalidades do projeto;
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
- Features: Onde fica as funcionalidades do projeto;
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(/\s+/, '_').tr('/', '_')
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')
@@ -1,10 +1,10 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'capybara', '3.0.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(/\s+/, '_').tr('/', '_')
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')
@@ -1,3 +1,3 @@
1
1
  module GenerateRubyTests
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
data/lib/locales/pt.yml CHANGED
@@ -5,7 +5,7 @@ pt:
5
5
  scenario: "Cenário"
6
6
  given: "Dado"
7
7
  when: "Quando"
8
- then: "Então"
8
+ then: "Entao"
9
9
  comments:
10
10
  insert_steps: "Insira os passos"
11
11
  elements: "Declare todos os elementos da página"
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.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.yaml
113
- - lib/SkeletonApi/features/support/config/hmg.yaml
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