Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.63 KB

tests.md

File metadata and controls

64 lines (41 loc) · 1.63 KB

BDD Tests

Execute tests

  1. Install selenium
  1. Start selenium server

    #Linux ./bin/selenium start

    #Windows .\bin\selenium.bat start

  2. Create sqlite DB test

    • Linux

      ./bin/init.bat --env=test

    • Windows

      .\bin\init-db.bat --env=test

  3. Execute tests

    • To speed up and to reinitialize mangopay users for KYC limit reached use SQLite DB Backup : cp features/_datas/backup/test_xxx app/cache/cache/test cp features/_datas/backup/test_xxx.ser app/cache/cache/test
    • Set parameters for test environment: cp app/config/parameters_test.yml.dist app/config/parameters_test.yml And set values
    • One test: bin/behat --name="User registration"
    • All tests: bin\behat
    • Rerun only failed tests: bin\behat.bat --rerun
    • One scenario: bin\behat.bat bin\behat features\frontend\UserLogin.feature:6