Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
tests
.editorconfig Add tests for more Python versions Mar 6, 2017
.gitignore
README.md Speed up Vagrant tests Mar 28, 2018
Vagrantfile Point PyYAML dependency to official repository May 24, 2018
driver-lib.bash Speed up Vagrant tests Mar 28, 2018
test Change default Python version in tests to 3.6.4 Mar 27, 2018
test-lib.bash Add PyPI package May 30, 2018
test_travis Point PyYAML dependency to official repository May 24, 2018

README.md

Testing

Dotbot testing code uses Vagrant to run all tests inside a virtual machine to have tests be completely isolated from the host machine.

Installing the Test environnement

Debian-based distributions

  • Install the test requirements
sudo apt install vagrant virtualbox
  • Install Dotbot dependencies
git submodule update --init --recursive

macOS

git submodule update --init --recursive

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.

You can’t perform that action at this time.