Share your code.
Webdriver.io-based Cucumber tests
- These are high-level instructions. For more details see the wiki at https://github.com/ArcGIS/opendata-ui/wiki/Cucumber-end-to-end-tests .
- 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-testsdirectory and run
npm installto get all the dependencies downloaded/built/installed.
- Install Java JDK 8.
- Install Chrome.
- Copy the file
opendata-integration-tests/credentials.jsand supply correct credentials. Credentials are documented at https://github.com/ArcGIS/composer/wiki/DevExt-and-QAExt .
- Add one of the lines
DEBUG=falseto the file
opendata-integration-tests/.envdepending on whether you need to be able to debug for development or investigation. Alternatively, you can set DEBUG in your shell environment (like
export DEBUG=true; export NODE_ENV=qa; npm run all) or specify it on the command line (like
DEBUG=true NODE_ENV=qa npm run all).
Running the tests
- The environment variable
NODE_ENVmust 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 like
export NODE_ENV=qa, as shown in the examples above.
- Be in the
opendata-integration-testsdirectory or one of its subdirectories.
npm run all(ensure that DEBUG and NODE_ENV environment variables have appropriate values. For example,
DEBUG=false, NODE_ENV=qa npm run all).