Zfilipin has uploaded a new change for review. https://gerrit.wikimedia.org/r/120793
Change subject: Updated readme file ...................................................................... Updated readme file Cucumber now works fine on Ruby 2 and Windows. How to set environment variables on Windows PowerShell. Change-Id: Ibf7b874b57fd97b9acb9087e0e8f18f9b318529c --- M README.md 1 file changed, 13 insertions(+), 9 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/selenium refs/changes/93/120793/1 diff --git a/README.md b/README.md index 9d5a094..3ff317a 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,6 @@ The easiest way to install Ruby on Linux/Unix/Mac is [RVM](https://rvm.io/) and on Windows [RubyInstaller](http://rubyinstaller.org/). -ALERT: On Windows you must use Ruby 1.9.3 for now because Cucumber currently -doesn't work with Ruby 2. - cd /tests/browser gem update --system gem install bundler @@ -28,10 +25,12 @@ For example: export MEDIAWIKI_USER=<username here> # Linux/Unix/Mac - set MEDIAWIKI_USER=<username here> # Windows + set MEDIAWIKI_USER=<username here> # Windows Command Prompt + $env:MEDIAWIKI_USER="<username here>" # Windows PowerShell export MEDIAWIKI_PASSWORD=<password here> # Linux/Unix/Mac - set MEDIAWIKI_PASSWORD=<password here> # Windows + set MEDIAWIKI_PASSWORD=<password here> # Windows Command Prompt + $env:MEDIAWIKI_PASSWORD="<password here>" # Windows PowerShell ## Usage @@ -41,9 +40,12 @@ the tests elsewhere, set the `MEDIAWIKI_URL` environment variable. For example: export MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Linux/Unix/Mac - set MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Windows + set MEDIAWIKI_URL=http://commons.wikimedia.beta.wmflabs.org/wiki/ # Windows Command Prompt + $env:MEDIAWIKI_URL="http://commons.wikimedia.beta.wmflabs.org/wiki/" # Windows PowerShell -To run a single test file enter `bundle exec cucumber features/FEATURE_NAME.feature`. +To run a single test file: + + bundle exec cucumber features/FEATURE_NAME.feature To run a single test scenario, put a colon and the line number (NN) on which the scenario begins after the file name: @@ -54,14 +56,16 @@ probably PhantomJS, a headless browser: export BROWSER=phantomjs # Linux/Unix/Mac - set BROWSER=phantomjs # Windows + set BROWSER=phantomjs # Windows Command Prompt + $env:BROWSER="internet_explorer" # Windows PowerShell By default, the browser will close itself at the end of every scenario. If you want the browser to stay open, set the environment variable `KEEP_BROWSER_OPEN` to `true`: export KEEP_BROWSER_OPEN=true # Linux/Unix/Mac - set KEEP_BROWSER_OPEN=true # Windows + set KEEP_BROWSER_OPEN=true # Windows Command Prompt + $env:KEEP_BROWSER_OPEN="true" # Windows PowerShell ## Screenshots -- To view, visit https://gerrit.wikimedia.org/r/120793 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibf7b874b57fd97b9acb9087e0e8f18f9b318529c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/selenium Gerrit-Branch: master Gerrit-Owner: Zfilipin <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
