I want to run php unit tests in my custom plugin. I have found one plugin called Unit Test Runner (PHPUnit) to run the test cases. But it's not working. When i tried to it pg/testing url it's showing blank page. Do i need to add any configuration details specific to local elgg setup inside plugin? Can any one help me on this.
And even, We can run the unit tests using diagnostics plugin by writng the unit tests inside tests folder in our custom plugin. It us also not workign for me. Can any one give some suggestion over this.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Juho Jaakkola@juho.jaakkola

Juho Jaakkola - 0 likes
You must log in to post replies.Do you have access to command line?
You can configure phpunit by adding phpunit.xml to your plugin directory and then running the tests from command line simply by running the command "phpunit":
You can see an example of the configuration from the phpunit.xml that can be found from Elgg root directory.
Here you can find detailed documentation on how to configure the phpunit.xml http://phpunit.de/manual/3.7/en/appendixes.configuration.html