Order behat test + fix travis integration.

pull/2487/head
jmontoyaa 9 years ago
parent 1f72d4de10
commit 8cd16ef333
  1. 2
      .travis.yml
  2. 6
      tests/behat.yml
  3. 24
      tests/behat/README.md
  4. 11
      tests/behat/behat.yml
  5. 0
      tests/behat/features/accessCompanyReports.feature
  6. 12
      tests/behat/features/bootstrap/FeatureContext.php
  7. 0
      tests/behat/features/courseTools.feature
  8. 0
      tests/behat/features/createCourse.feature
  9. 0
      tests/behat/features/createUser.feature
  10. 0
      tests/behat/features/forum.feature
  11. 0
      tests/behat/features/login.feature
  12. 0
      tests/behat/features/socialGroup.feature

@ -86,7 +86,7 @@ before_script:
script:
# - phpunit -c tests/phpunit
# pwd shows /home/travis/build/chamilo/chamilo-lms
- cd tests && ../vendor/behat/behat/bin/behat -v
- cd tests/behat && ../../vendor/behat/behat/bin/behat -v
# configure notifications (email, IRC, campfire etc)
notifications:

@ -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…
Cancel
Save