This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fswatch -r -o -e 'pyc' . | (while read; do python *_test.py; done) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stage 'test' | |
| parallel ( | |
| "scenario A": { | |
| node { | |
| echo 'dry run' | |
| } | |
| }, | |
| "scenario B": { | |
| node { | |
| echo 'dry run' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| configure { project -> project / publishers << 'join.JoinTrigger' { | |
| 'joinProjects'{} | |
| 'joinPublishers' { | |
| 'hudson.plugins.parameterizedtrigger.BuildTrigger' { | |
| 'configs' { | |
| 'hudson.plugins.parameterizedtrigger.BuildTriggerConfig' { | |
| 'configs' { | |
| 'hudson.plugins.parameterizedtrigger.PredefinedBuildParameters' { | |
| properties(‘SOME_PARAM=$SOME_PARAM\nSOME_OTHER_PARAM=$SOME_OTHER_PARAM') | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker ps -a -q > remove && for line in $(cat remove); do docker rm -f $line ; done && rm -f remove | |
| docker images -q > remove && for line in $(cat remove); do docker rmi -f $line ; done && rm -f remove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \curl -sSL https://get.rvm.io | bash -s stable --ruby | |
| source ~/.profile | |
| rvm install ruby-1.8.7-p374 | |
| rvm install ruby-1.9.1-p431 | |
| rvm install ruby-1.9.3-p484 | |
| rvm install ruby-2.0.0-p353 | |
| rvm install ruby-2.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //FightCode can only understand your robot | |
| //if its class is called Robot | |
| var Robot = function(robot) { | |
| }; | |
| Robot.prototype.onIdle = function(ev) { | |
| var robot = ev.robot; | |
| robot.clone(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rspec --require ./watir_html_formatter.rb --format WatirHtmlFormatter --out output/index.html test/bar_spec.spec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "rspec/core/formatters/base_text_formatter" | |
| class WatirHtmlFormatter < RSpec::Core::Formatters::BaseTextFormatter | |
| end | |
| def extra_failure_content(failure) | |
| content = [] | |
| content << "<span>" | |
| file_name = save_html | |
| content << link_for(file_name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "watir-webdriver" | |
| b = Watir::Browser.new | |
| b.goto "http://www.geradordecpf.org/" | |
| arr = Array.new | |
| 5000.times do |i| | |
| b.button(:value => "Gerar").click | |
| arr.push(b.text_field(:id => "numero").value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copy and paste this into your terminal to start an IRB session and use Capybara's DSL to write tests interactively | |
| # Thanks to Tom Clements | |
| # http://tom-clements.com/blog/2012/02/25/capybara-on-the-command-line-live-browser-testing-from-irb/ | |
| irb | |
| require 'capybara/dsl' | |
| include Capybara::DSL | |
| Capybara.default_driver = :selenium | |
| visit "http://127.0.0.1:3000" | |
| visit "http://www.google.com" #etc... |
NewerOlder