lg-tests 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 838e36cfaea5eabb9a21dfb173db85a2389e609ec1ac7087ee2dd22955e578d3
4
+ data.tar.gz: 198be78412b13b3fff90a5fa220b99991e1f3ddb9bc696823e2b9e00265706ca
5
+ SHA512:
6
+ metadata.gz: bb2c69eb6f366310e8cdc2cfbeedef4f6ea700035dd939b3d8ecc75e1da378b6cb9bbe5235305e467688d4ca6786d6ad0db782fcc93a02a537b8fa47430548ee
7
+ data.tar.gz: 873daae1db3998a481160341e62cabfd603d9a036405985a19ea19889f40188ff17857dfa1afaeeb000bcfca628b022b95f23b3b41418894696616ce50ce1faa
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in lgTests.gemspec
4
+ gemspec
5
+
6
+ gem 'capybara', '3.35.3'
7
+ gem 'colorize', '0.8.1'
8
+ gem 'cpf_cnpj', '0.5.0'
9
+ gem 'cucumber', '5.2.0'
10
+ gem 'parallel_tests', '3.7.0'
11
+ gem 'rails', '5.2.3'
12
+ gem 'rake', '~> 12.0'
13
+ gem 'rspec', '3.8.0'
14
+ gem 'selenium-webdriver', '3.142.3'
15
+ gem 'site_prism', '3.2'
16
+ gem 'webdrivers', '4.6.0'
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # LgTests
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/lgTests`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'lgTests'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install lgTests
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lgTests.
36
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "lgTests"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lgTests.gemspec ADDED
@@ -0,0 +1,23 @@
1
+ require_relative 'lib/lgTests/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "lg-tests"
5
+ spec.version = LgTests::VERSION
6
+ spec.authors = ["Cristiano Gonzaga"]
7
+ spec.email = ["cristiano.gonzaga@logontechsistemas.com.br"]
8
+
9
+ spec.summary = "Estrutura básica de testes funcionais com ruby"
10
+ spec.description = "Esta gem foi criada com o objetivo de agilizar o processo de estruturação de uma stack de automação de testes com ruby, e capybara."
11
+ spec.homepage = ""
12
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
+
14
+ spec.license = "MIT"
15
+ # Specify which files should be added to the gem when it is released.
16
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+ end
data/lib/lgTests.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'lgTests/version'
2
+ require 'capybara'
3
+ require 'webdrivers'
4
+ # require 'capybara/cucumber'
5
+ require 'selenium-webdriver'
6
+ require 'site_prism'
7
+ require 'capybara/rspec'
8
+
9
+ module LgTests
10
+ class Error < StandardError; end
11
+ Webdrivers.install_dir = '/home/Dev'
12
+
13
+ def self.abrirBrowser
14
+ Capybara.register_driver :selenium do |driver|
15
+ Capybara::Selenium::Driver.new(driver, :browser => :firefox)
16
+ end
17
+ Capybara.configure do
18
+ Capybara.default_driver = :selenium
19
+ Capybara.page.driver.browser.manage.window.maximize
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,3 @@
1
+ module LgTests
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lg-tests
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Cristiano Gonzaga
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-05-27 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Esta gem foi criada com o objetivo de agilizar o processo de estruturação
14
+ de uma stack de automação de testes com ruby, e capybara.
15
+ email:
16
+ - cristiano.gonzaga@logontechsistemas.com.br
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - ".gitignore"
22
+ - Gemfile
23
+ - README.md
24
+ - Rakefile
25
+ - bin/console
26
+ - bin/setup
27
+ - lgTests.gemspec
28
+ - lib/lgTests.rb
29
+ - lib/lgTests/version.rb
30
+ homepage: ''
31
+ licenses:
32
+ - MIT
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.3.0
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubygems_version: 3.1.2
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Estrutura básica de testes funcionais com ruby
53
+ test_files: []