Skip to content

Instantly share code, notes, and snippets.

View tiagonline's full-sized avatar
🚀
Ajudando a mover o mundo!!

Tiago Silva tiagonline

🚀
Ajudando a mover o mundo!!
View GitHub Profile
@tiagonline
tiagonline / circleci-conditional-job.md
Created September 14, 2020 17:17 — forked from testautomation/circleci-conditional-job.md
CircleCi - conditional jobs would make every body happy

simlified .circleci/config.yml

workflows:

  parallel-robot-tests:

      jobs:
        - build-artifacts:
 - test-suit-1:
@tiagonline
tiagonline / gist:22275618d54d887dff5fcfe1b28f2408
Created February 5, 2019 13:15 — forked from mrtns/gist:78d15e3263b2f6a231fe
Upgrade Chrome from Command Line on Ubuntu
# Install
# via http://askubuntu.com/questions/510056/how-to-install-google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
# Update
@tiagonline
tiagonline / README-Template.md
Created January 29, 2019 15:50 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@tiagonline
tiagonline / gist:6be51bfe2d995a3dcba7a1c16801735c
Created October 18, 2018 16:22 — forked from eliasnogueira/gist:5340507
Diferença entre Smoke e Acceptance Test num contexto ágil

Hoje um colaborador da lista sobre Teste de Software [DFTestes] (http://br.groups.yahoo.com/group/DFTestes/) perguntou em uma thread sobre PhantomJS qual era a difernça entre Smoke Test e Acceptance Test. Ai resolvi responder. Como a lista é somente de acesso aos usuários registrados, estou colocando um resumo, na minha ótica, a diferença entre eles:

Dentro de um contexto ágil nós temos uma separação clara do que é smoke test e o que é teste de aceitação.

  • Smoke Test: conjunto de testes (bem menor do que o conjunto de teste de aceitaçaõ, que vai configurar posteriormente em uma regressão) com o intuito de validar se os pontos maisimportantes da aplicação continuam funcionando após as alterações.

  • Teste de Aceitação: São os testes funcionais que conhecemos. Em um contexto ágil eles são chamados de aceitação ao invés de funcional, pela ótica que adotamos a estes testes, que vão tanto validar a aplicação funcionalmente como validar também da ótica de um usuário (fazer uma venda completa, por exemplo). Este

@tiagonline
tiagonline / enzyme_render_diffs.md
Created August 24, 2018 17:52 — forked from fokusferit/enzyme_render_diffs.md
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@tiagonline
tiagonline / protractor-cheatsheet.coffee
Created January 9, 2018 17:53
Protractor e2e Cheatsheet (CoffeeScript)
browser.get "/phones" # navigate to /phones URL
input.clear() # clear text input field
expect(browser.getTitle()).toMatch 'My Google Photo Gallery'
expect(browser.getCurrentUrl()).toMatch "/phones$"
# Find by...
# --------------

by.model

<input type="text" ng-model="yourName">

// by.model('yourName')

by.binding

@tiagonline
tiagonline / stub-properties-and-methods-sinon.js
Created December 11, 2017 15:20 — forked from jouni-kantola/stub-properties-and-methods-sinon.js
Sinon.JS used to stub properties and methods in a sandbox. Methods and properties are restored after test(s) are run.
define(['can', 'localCache'], function(can, localCache) {
'use strict';
describe('storeLocal()', function() {
var sandbox;
beforeEach(function() {
// create sandbox environment for mocking about
sandbox = sinon.sandbox.create();
});
@tiagonline
tiagonline / sandbox-mocha.js
Created December 11, 2017 15:16 — forked from jgable/sandbox-mocha.js
Sinon Sandbox Example
var sinon = require('sinon'),
Widget = require('../../widget');
describe('My widget', function () {
var sandbox;
beforeEach(function () {
// Create a sandbox for the test
sandbox = sinon.sandbox.create();
});