mirror of
1
0
Fork 0
dotbot/test
Paulo Fagundes d2913e6cee Replace `which` with `command -v`
Some distributions such as Arch Linux no longer install `which` by
default through the base package (see
https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/).

The maintainers have explained why `command -v` is superior:
https://www.reddit.com/r/archlinux/comments/de1er6/arch_linux_news_base_group_replaced_by_mandatory/f2v8uhu/.
2019-11-09 12:38:01 -05:00
..
tests Replace `which` with `command -v` 2019-11-09 12:38:01 -05:00
.editorconfig Add tests for more Python versions 2017-03-06 15:20:27 -05:00
.gitignore Add testing framework and tests 2015-05-05 20:11:46 -04:00
README.md Speed up Vagrant tests 2018-03-27 20:56:55 -04:00
Vagrantfile Switch to more recent version of Debian 2019-10-12 10:36:35 -04:00
driver-lib.bash Speed up Vagrant tests 2018-03-27 20:56:55 -04:00
test Change default Python version in tests to 3.6.4 2018-03-27 18:16:55 -04:00
test-lib.bash Add PyPI package 2018-05-30 10:23:53 -04:00
test_travis Point PyYAML dependency to official repository 2018-05-24 19:07:11 -04:00

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.