Commit Graph

13 Commits

Author SHA1 Message Date
Mitchell Hashimoto 87bc6ec63f RSpec is coming in for acceptance tests. More details follow...
RSpec was chosen to be used for acceptance tests for many reasons:

* The tests are actually much cleaner now. It is clearer to see what
  is being tested, and what is being used for setup.
* Matcher transition will be coming soon. This will really clean up
  a lot of the "assert" boilerplate all over. There was a lot of repetition
  in this area.
* Shared examples will help greatly for testing common error cases
  for many commands.
* The test runner for RSpec is simply much better. Being able to specify
  the exact test to run by line, for example, is a great help.
2011-11-06 23:47:23 -08:00
Mitchell Hashimoto 2c607ca4f4 Wait for VBoxSVC to disappear between tests. 2011-11-06 19:20:14 -08:00
Mitchell Hashimoto 2febc9fcff Isolated environment removes virtual machines after run. 2011-11-06 18:45:49 -08:00
Mitchell Hashimoto 421a1fb341 First "up" based acceptance test. Multiple fixes to test harness.
* First test that uses "vagrant up"
* Allow interaction with processes executed during `execute` so that
  we can enter input into STDIN and receive data from STDOUT in
  real time.
* Fix some issue with `waitpid2`, which actually speeds up all tests
  quite a bit.
2011-11-06 13:30:49 -08:00
Mitchell Hashimoto 55f2ac3f54 Isolated env will log output of command as it comes. Update tests. 2011-11-05 14:44:24 -07:00
Mitchell Hashimoto d0e191a96c Make some changes to have tests run on 1.8.7 2011-11-03 22:12:51 -07:00
Mitchell Hashimoto c9cf2867ea Some `vagrant box` tests 2011-11-03 21:38:15 -07:00
Mitchell Hashimoto f741d81582 Fix color tests 2011-11-02 23:37:19 -07:00
Mitchell Hashimoto 974c180d8f Tests that color and --no-color work properly 2011-11-02 23:16:29 -07:00
Mitchell Hashimoto 2bd0b76fd2 Set isolated environment working dir to the proper directory 2011-11-02 21:55:54 -07:00
Mitchell Hashimoto a19fa6a07c Cleanup temporary directory after running 2011-11-02 21:41:41 -07:00
Mitchell Hashimoto 4c6f8d2b52 Setup isolated environment to setup a custom HOME directory as well 2011-11-02 21:38:48 -07:00
Mitchell Hashimoto 4c9ad26115 Acceptance tests starting code is in. Version is an example. 2011-11-02 21:09:38 -07:00