The automated tests for the DAP code are implemented using cucumber-js and puppeteer.
By default the tests use the local version of the DAP javascript files. Loading the code into a test HTML page, performing various user actions, and testing the behavior of the code in response to the user actions.
Use the DAP_ENV environment variable to insert live versions of the code into
the test HTML page instead of the local version as described below.
Start up the test site at http://localhost:8080/:
npm run test-site-devThen run the tests against the test site:
npm run cucumbernpm run cucumber:debugnpm run cucumber:reportTest report should be available in output/test-results.html.
Print debugging information to stdout while running the tests:
VERBOSE=true npm run cucumberDAP_ENV=staging npm run cucumberDAP_ENV=production npm run cucumber