Not logged in. · Lost password · Register
Forum: General Help and Support Development RSS
New Vagrant VM environment for testing plugins
iainhallam #1
Member since May 2008 · 33 posts
Group memberships: Members
Show profile · Link to this post
Subject: New Vagrant VM environment for testing plugins
I've been testing a few plugins recently and decided to do most of it in virtual machines managed by Vagrant. As I was installing DokuWiki frequently into these VMs, but I still wanted it to be visible in my host operating system where I was doing the development (so I could inspect changes as the plugin operated) I wrapped up the whole environment and the scripts used to install a fresh working copy of DokuWiki into a GitHub project:

https://github.com/iainhallam/vagrant-dokuwiki-plugin

If you're working on a plugin, you can create the appropriate directories above the plugin files, download this repo, and write a short BASh script to do any configuration your plugin needs, then you have a reproducible environment for testing the plugin just by running the command vagrant up and pointing your browser at localhost:10080.

If you make a mess of the installation, you can use vagrant destroy and start again. (If you mess up the plugin files, I'm assuming you're using some kind of source code versioning...).

Anyway, I thought it might be useful to anyone who does a lot of testing or plugin development.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-26, 15:32:14 (UTC +01:00)