Software Developer
Hookah is a small smoke testing command line library for any web application.
It is the process used to identify the correctness, completeness and quality of developed computer software.
Vs
Manual tests may find many bugs however it is a laborious and time consuming process. The effort required is the same each time
The use of automation improves quality and team morale. Automated Tests are part of the codebase
A smoke test is basically just a sanity check to see if the software functions on the most basic level.
If your smoke test fails, it means there is no point in running your other functional tests.
PHPUnit and Goutte 2.x
Optional: Paratest
Clone repo :
git clone git@github.com:younginnovations/hookah.git cd hookah composer install --prefer-distcomposer require --dev yipl/hookah
or
Add "yipl/hookah": "~0.4" and composer install
Run with phpunit
./vendor/bin/phpunit
Run tests faster
./vendor/bin/paratest -f --colors -m 2 -p 4 tests
/** * @var string */ protected $baseUrl = 'http://drupal-test.jelastic.elastx.net/';
/** * @var string */ protected $loginPath = 'user/login';
/** * @var string */ protected $usernameField = 'name'; /** * @var string */ protected $passwordField = 'pass'; /** * @var string */ protected $submitButtonText = 'Log in';
/** * @var array */ protected $users = [ ['role'=> 'admin', 'identifier' => 'admin', 'password' => '123admin'], ];
/** * @var string */ protected $loggedInLinkText = 'Log out'; /** * To be overridden by child class * * @var string */ protected $userRole = 'none';
return [ [$this->baseUrl, 200], ['about', 200], ['not-existing', 404], ['.git', 403], ];
$adminPaths = [ ['admin', 200], ['admin/config', 200], ['not-existing', 404] ];
Integration with Laravel
Integration with Custom PHP Project