Document how to run just one Selenium test
authorŽeljko Filipin <zeljko.filipin@gmail.com>
Tue, 28 Nov 2017 13:26:42 +0000 (14:26 +0100)
committerŽeljko Filipin <zeljko.filipin@gmail.com>
Tue, 28 Nov 2017 13:26:42 +0000 (14:26 +0100)
Bug: T139740
Change-Id: Ieb5f27285046c33d77b615159dc2000d80ef644a

tests/selenium/README.md

index a14cccb..c895a42 100644 (file)
@@ -30,6 +30,10 @@ Then in another terminal:
     cd tests/selenium
     ../../node_modules/.bin/wdio --spec specs/page.js
 
+To run only one test (name contains string 'preferences'):
+
+    ../../node_modules/.bin/wdio --spec specs/user.js --mochaOpts.grep preferences
+
 The runner reads the config file `wdio.conf.js` and runs the spec listed in
 `page.js`.