FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added note about creating behat.yml

...

Composer will drop the the runtimes into bin/.

Before running Behat tests, it will be necessary to create a behat.yml file:

Code Block
languagebash
cp application/tests/behat.template application/tests/behat.yml

Then edit the behat.yml file and ensure that both base_url variables matches your installation.

To run the tests themselves 

Code Block
languagebash
# Run ALL behat tests
bin/behat --configc application/tests/behat.yml
 
# Run just posts test
bin/behat --configc application/tests/behat.yml features/api.posts.feature
 
# Run ALL spec tests
bin/phpspec run
 
# Run just the config entity spec
bin/phpspec run spec/Ushahidi/Entity/ConfigSpec.php
 
# Run ALL phpunit tests
bin/phpunit -c application/tests/phpunit.xml
 
# Run just posts model test
bin/phpunit -c application/tests/phpunit.xml classes/models/PostModelTest.php 
 
# You could also run these from application/tests without specifying config files
cd application/tests
../../bin/behat
../../bin/phpunit

...