Has anyone had success with this...?
This is what happens when I try to run:
master x ~/git/vagrant/mediawiki/tests/phpunit $ php phpunit.php
Warning: require_once(/vagrant/LocalSettings.php): failed to open stream: No such file or directory in /Users/jrobson/git/vagrant/mediawiki/LocalSettings.php on line 130
Fatal error: require_once(): Failed opening required '/vagrant/LocalSettings.php' (include_path='.:') in /Users/jrobson/git/vagrant/mediawiki/LocalSettings.php on line 130
I _thought_ someone was working on getting it to just work. For now, though, if you start with a clean machine you can run the commands here: https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Installing_PHPUnit#Us... to get it installed. Make sure the use the pear commands because it'll get you phpunit 3.7.X. phpunit 4.0 doesn't work for us mediawiki. Anyway, after following the pear commands inside your vagrant VM phpunit should work.
Nik
On Fri, Jun 13, 2014 at 1:44 PM, Jon Robson jdlrobson@gmail.com wrote:
Has anyone had success with this...?
This is what happens when I try to run:
master x ~/git/vagrant/mediawiki/tests/phpunit $ php phpunit.php
Warning: require_once(/vagrant/LocalSettings.php): failed to open stream: No such file or directory in /Users/jrobson/git/vagrant/mediawiki/LocalSettings.php on line 130
Fatal error: require_once(): Failed opening required '/vagrant/LocalSettings.php' (include_path='.:') in /Users/jrobson/git/vagrant/mediawiki/LocalSettings.php on line 130
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Fri, Jun 13, 2014 at 10:44 AM, Jon Robson jdlrobson@gmail.com wrote:
Has anyone had success with this...?
This is what happens when I try to run:
master x ~/git/vagrant/mediawiki/tests/phpunit $ php phpunit.php
Warning: require_once(/vagrant/LocalSettings.php): failed to open stream: No such file or directory in /Users/jrobson/git/vagrant/mediawiki/LocalSettings.php on line 130
Fatal error: require_once(): Failed opening required '/vagrant/LocalSettings.php' (include_path='.:') in /Users/jrobson/git/vagrant/mediawiki/LocalSettings.php on line 130
I use it frequently, and iirc the setup was nearly exactly what the instruction on mediawiki said.
One other issue I did hit was that running even the databaseless tests on a default vagrant setup ran out of memory. I upped my vagrant config to use 2GB, and things work fine.
csteipp@herou:~/tmp/vagrant2> cat Vagrantfile-extra.rb #Vagrant.configure('2') do |config| # config.vm.synced_folder './browsertests', '/srv/browsertests', # id: 'vagrant-browsertests', # owner: 'vagrant', # group: 'vagrant' #end
Vagrant.configure('2') do |config| config.vm.provider :virtualbox do |vb| # See http://www.virtualbox.org/manual/ch08.html for additional options. vb.customize ['modifyvm', :id, '--memory', '2048'] vb.customize ['modifyvm', :id, '--cpus', '2'] vb.customize ['modifyvm', :id, "--cpuexecutioncap", "90"] end end
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org