1
0
Fork 0
mirror of synced 2024-12-22 14:11:07 -05:00
dotbot/test
2015-05-06 10:38:58 -04:00
..
tests Add testing framework and tests 2015-05-05 20:11:46 -04:00
.editorconfig Update editorconfig 2015-05-06 08:39:10 -04:00
.gitignore Add testing framework and tests 2015-05-05 20:11:46 -04:00
driver-lib.bash Clean up code 2015-05-06 10:38:58 -04:00
README.md Add testing framework and tests 2015-05-05 20:11:46 -04:00
test Clean up code 2015-05-06 10:38:58 -04:00
test-lib.bash Add testing framework and tests 2015-05-05 20:11:46 -04:00
Vagrantfile Add testing framework and tests 2015-05-05 20:11:46 -04:00

Testing

Dotbot testing code uses Vagrant to run all tests inside a virtual machine to have tests be completely isolated from the host machine. The test driver relies on the Sahara plugin to snapshot and roll back virtual machine state. The tests are deterministic, and each test is run in a virtual machine with fresh state, ensuring that tests that modify system state are easily repeatable.

Running the Tests

Before running the tests, the virtual machine must be running. It can be started by running vagrant up.

The test suite can be run by running ./test. Selected tests can be run by passing paths to the tests as arguments to ./test.

When finished with testing, it is good to shut down the virtual machine by running vagrant halt.