daf8d82e02
This commit adds an option to the extended configuration syntax for linking files and directories. Enabling the relative option makes it so that symbolic links are created with relative paths instead of absolute paths. |
||
---|---|---|
.. | ||
tests | ||
.editorconfig | ||
.gitignore | ||
driver-lib.bash | ||
README.md | ||
test | ||
test-lib.bash | ||
test_travis | ||
Vagrantfile |
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
.
Tests can be run with a specific Python version by running ./test --version <version>
- for example, ./test --version 3.4.3
.
When finished with testing, it is good to shut down the virtual machine by
running vagrant halt
.