Moodle Mobile 2 (Ionic 1) End To End Testing: Difference between revisions
From MoodleDocs
Juan Leyva (talk | contribs) (Created page with "== Setting-up testing environment == This currently only covers testing on Android 4.4 onwards and Chrome. iOS testing is a work in progress. * Head to the root directory of...") |
(No difference)
|
Revision as of 14:45, 24 May 2016
Setting-up testing environment
This currently only covers testing on Android 4.4 onwards and Chrome. iOS testing is a work in progress.
- Head to the root directory of your MM instance.
- Install the packages required for testing
- npm install (do not use the -g option)
- Install the Chrome webdriver
- ./node_modules/protractor/bin/webdriver-manager update
- Make sure your checkout is up to date, all the cordova plugins are installed and the android platform is set-up. The following should be enough.
- gulp
- ionic state restore
- ionic build android
Once this is done, you will need to generate a protactor configuration file for the platform you intend to test the app on.