Testing with a virtual machine under command line



  • How to start a windows and run dedicated programs then revert to original status

    I wonder know if there is a way,

    Can let me start up a Windows (which including my custom environment: Ruby, Ruby on Rails ready )

    And execute the dedicated process,(some environment could be dirty/changed)

    So after that, shut down the Windows and revert it to original status.

    Next time when I can do the same thing within a clean environment.

    I prefer the above job can be done in Ubuntu OS, and virtual machine (Vmware, virtualbox, ...)

    Any ideas, Thanks in advance.



  • They invented Vagrant for this, you can defined a base image, boot the image, run scripts and install software from its configuration to make sure you and everyone else in your team always has the same machine. Bring it down, bring it back and ask for a clean machine all from the command line.

    Vagrant supports both Linux and Windows guests.

    It uses VirtualBox and supports Puppet or Chef scripts for easy maintenance.

    You can use Vagrant to setup a new clean test environment before each test run. If the developer use the same setup with Vagrant you will never hear it works on my machine again 🙂



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2