diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-07-12 17:27:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 17:27:45 +0300 |
commit | 40a12d388fa7fbb73e912cedc0a6c272ede64860 (patch) | |
tree | 26c80d671d557ec7c19fb61eeea44c98d5cc1d7d /TESTS.md | |
parent | c88cea7f3f9983a25616317ad475759fa99ee8a1 (diff) | |
parent | 2f808f8a4e6224478e1c9efb85c1a4b3f24df087 (diff) |
Merge pull request #567 from docwhat/pr/docker
test-in-docker: quickly test frameworks in docker
Diffstat (limited to 'TESTS.md')
-rw-r--r-- | TESTS.md | 33 |
1 files changed, 30 insertions, 3 deletions
@@ -13,10 +13,37 @@ Tests in separate files under `test/functions`. These Tests tend to be more complex in setup than the basic tests. To avoid ending up in a huge single file, there is one file per segment in `test/segments`. -# Test-VMs +# Manual Testing If unit tests are not sufficient (e.g. you have an issue with your prompt that -occurs only in a specific ZSH framework), then you could use our Test-VMs! +occurs only in a specific ZSH framework) then you can use either Docker or +or our Vagrant. + +## Docker + +This is the easiest to use _if_ you have Docker already installed and running. + +The command `./test-in-docker` should make it fairly easy to get into a running +container with the framework of your choice. + +Examples: + +``` zsh +# Test Antigen with the oldest version of ZSH +$ ./test-in-docker antigen +``` + +``` zsh +# Test Prezto with ZSH version 5.2 +$ ./test-in-docker --zsh 5.2 prezto +``` + +You can get Docker at <https://www.docker.com/community-edition>. + +**Note:** Not all frameworks work with all versions of ZSH (or the underlying OS). + +## Vagrant + Currently there are two test VMs. `test-vm` is an Ubuntu machine with several pre-installed ZSH frameworks. And there is `test-bsd-vm` which is a FreeBSD! -For how to run the machines see [here](test-vm/README.md).
\ No newline at end of file +For how to run the machines see [here](test-vm/README.md). |