0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
vagrant-test is a simple Vagrant plugin for running tests on your VMs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0.9.0
 Project Readme

vagrant-test

vagrant-test is a simple Vagrant plugin for running integration tests on your VMs. There are several similar projects related to testing Chef/Puppet configurations, but to my knowledge, none of them provide a simple way to run the typical "internal" tests as well as "external" tests (i.e. run from outside the VM) in order to verify remote connectivity.

This project served as a way for me to learn how to write a Vagrant plugin, and due to its extreme simplicity, it is also CM/test framework agnostic (a useful feature, in my opinion).

Installation

gem install vagrant-test

Configuration

The following options can be used within the Vagrant::Config.run block of your Vagrantfile:

Option Description Default value
test.command Command used to run tests "rspec -f doc"
test.dir Root directory for all tests "spec"
test.internal_tests List of tests to be run by the VM []
test.external_tests List of tests to be run by the host system against the VM []

Usage

vagrant test [vm-name]

Change Log

0.1.2 (2012-03-12)

  • Fixes for running under Vagrant 1.0
  • Use bundler

0.1.1 (2012-03-02)

  • Fix bug when multiple test files are specified

0.1.0 (2012-02-29)

  • Initial public release

License

Copyright (C) 2012 Michael Paul Thomas Conigliaro

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Credits