1.2.0 • Published 8 years ago
cucumber-hub v1.2.0
Webdriver.io-based Cucumber tests
Installation
- These are high-level instructions. For more details see the wiki at https://github.com/ArcGIS/opendata-ui/wiki/Cucumber-end-to-end-tests .
Dependencies
- Ensure that you are running Node v6.3.0 or later. If you are using nvm, this is already set in the project file .nvmrc.
- Change directory to the
opendata-integration-tests
directory and runnpm install
to get all the dependencies downloaded/built/installed. - Install Java JDK 8.
- Install Chrome.
Configuration
- Copy the file
opendata-integration-tests/credentials.js.example
toopendata-integration-tests/credentials.js
and supply correct credentials. Credentials are documented at https://github.com/ArcGIS/composer/wiki/DevExt-and-QAExt . - Add one of the lines
DEBUG=true
orDEBUG=false
to the fileopendata-integration-tests/.env
depending on whether you need to be able to debug for development or investigation. Alternatively, you can set DEBUG in your shell environment (likeexport DEBUG=true; export NODE_ENV=qa; npm run all
) or specify it on the command line (likeDEBUG=true NODE_ENV=qa npm run all
).
Running the tests
- The environment variable
NODE_ENV
must be one of "dev", "qa", or "prod". You can do this by specifying it on the command line, or setting it in your shell session likeexport NODE_ENV=qa
, as shown in the examples above. - Be in the
opendata-integration-tests
directory or one of its subdirectories. - Run
npm run all
(ensure that DEBUG and NODE_ENV environment variables have appropriate values. For example,DEBUG=false, NODE_ENV=qa npm run all
).
1.2.0
8 years ago