parent
1f72d4de10
commit
8cd16ef333
@ -1,6 +0,0 @@ |
||||
default: |
||||
extensions: |
||||
Behat\MinkExtension: |
||||
base_url: http://localhost |
||||
goutte: ~ |
||||
selenium2: ~ |
||||
@ -0,0 +1,24 @@ |
||||
In order to run tests locally: |
||||
|
||||
- An administrator user should be created with: |
||||
Username "admin" and password "admin". |
||||
|
||||
- Edit file tests/behat/behat.yml |
||||
An update your Chamilo URL. |
||||
|
||||
- The main platform language must be in English. |
||||
|
||||
After executing a composer update |
||||
|
||||
Run: |
||||
|
||||
``` |
||||
cd tests/behat |
||||
../../vendor/behat/behat/bin/behat -v |
||||
``` |
||||
|
||||
Or for a specific feature: |
||||
|
||||
``` |
||||
../../vendor/behat/behat/bin/behat features/createCourse.feature |
||||
``` |
||||
@ -0,0 +1,11 @@ |
||||
default: |
||||
extensions: |
||||
Behat\MinkExtension: |
||||
base_url: http://localhost/ |
||||
goutte: ~ |
||||
selenium2: ~ |
||||
suites: |
||||
default: |
||||
paths: [ %paths.base%/features ] |
||||
formatters: |
||||
pretty: ~ |
||||
@ -1,16 +1,6 @@ |
||||
<?php |
||||
|
||||
use Behat\Behat\Context\ClosuredContextInterface, |
||||
Behat\Behat\Context\TranslatedContextInterface, |
||||
Behat\Behat\Context\BehatContext, |
||||
Behat\MinkExtension\Context\MinkContext; |
||||
|
||||
// |
||||
// Require 3rd-party libraries here: |
||||
// |
||||
// require_once 'PHPUnit/Autoload.php'; |
||||
// require_once 'PHPUnit/Framework/Assert/Functions.php'; |
||||
// |
||||
use Behat\MinkExtension\Context\MinkContext; |
||||
|
||||
/** |
||||
* Features context. (MinkContext extends BehatContext) |
||||
Loading…
Reference in new issue