Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Test Automation with Vagrant

stevenjackson
September 17, 2013

Test Automation with Vagrant

What happens when you get started on a new project? Ever start with a voyage of exciting discovery and end up slogging through two hours chasing down dependencies, watching installers, and decrypting error messages? Vagrant might be the solution you're looking for.

More interestingly, what sort of things can we start to do if setting up a new environment doesn't suck? What would you do if you could instantiate a new project environment at a whim?

stevenjackson

September 17, 2013
Tweet

More Decks by stevenjackson

Other Decks in Technology

Transcript

  1. WHAT’S MISSING? 4 Environment + Source Code + Build Process

    = Application Wednesday, September 18, 13
  2. VAGRANT = MAGIC  Vagrant = How do I build

    my development environment? 5 Wednesday, September 18, 13
  3. VAGRANT = MAGIC  Vagrant = How do I build

    my development environment?  Vagrant = Executable README 5 Wednesday, September 18, 13
  4. VAGRANT = MAGIC  Vagrant = How do I build

    my development environment?  Vagrant = Executable README  Vagrant = Multi-platform setup script 5 Wednesday, September 18, 13
  5. VAGRANT = MAGIC  Vagrant = How do I build

    my development environment?  Vagrant = Executable README  Vagrant = Multi-platform setup script 5 Wednesday, September 18, 13
  6. VAGRANT = MAGIC  Vagrant = How do I build

    my development environment?  Vagrant = Executable README  Vagrant = Multi-platform setup script  Vagrant = Environment as Code 5 Wednesday, September 18, 13
  7. VAGRANTFILE 6  Committed to Source Control  Work identically

    on any system Wednesday, September 18, 13
  8. PROVIDERS  VirtualBox (virtualbox.es, vagrantup.com)  VMWare  AWS 

    DigitalOcean  Rackspace  MORE: https://github.com/mitchellh/vagrant/wiki/Available- Vagrant-Plugins 10 Wednesday, September 18, 13
  9. VAGRANT TO THE RESCUE 24 mysql play2 JVM VM IDE/vim/emacs

    vagrant Host browser Wednesday, September 18, 13
  10. VAGRANT TO THE RESCUE 24 mysql play2 JVM VM IDE/vim/emacs

    vagrant Host browser ruby cucumber Wednesday, September 18, 13
  11. VAGRANT TO THE RESCUE 24 mysql play2 JVM VM IDE/vim/emacs

    vagrant Host browser ruby cucumber JVM selenium server Wednesday, September 18, 13
  12. RECAP  Install Virtualbox  Install Vagrant  Install Vagrant

    plugins  Install Java  Clone project  Start selenium server  Vagrant up  Vagrant ssh  cd /vagrant  cucumber 25 Wednesday, September 18, 13
  13. DRAWBACKS  Slower  Disk space  No UI by

    default  Minimal provisioning support for Windows VMs 26 Wednesday, September 18, 13
  14. RESOURCES  https://github.com/stevenjackson/vagrant-test- automation  https://github.com/mitchellh/vagrant/wiki/Available- Vagrant-Plugins  https://github.com/mitchellh/vagrant/wiki/Available- Vagrant-Boxes

     http://www.vagrantbox.es  http://cloud-images.ubuntu.com/  https://github.com/jedi4ever/veewee  http://community.opscode.com/cookbooks  http://berkshelf.com/ 29 Wednesday, September 18, 13