# Login with oc client
oc login <AUTH_URL> --token <TOKEN>
# Username & Password you can use to login to MDC/OpenShift via oAuth Proxy
export OPENSHIFT_USERNAME=<REPLACE_ME>
export OPENSHIFT_PASSWORD=<REPLACE_ME>
npm test
If you want to see the tests executed in a browser, export this variable:
export HEADLESS=false
-
Open to the Debug tab in the Activity Bar (
Ctrl + Shift + D
) -
Click on the gear icon (open launch.json) in the top right corner of the tab
-
In the
launch.json
configuration file add the following configuration to theconfigurations
section.The below configuration assume that you have opened the whole test-suite repo using VS Code, if you have only opened the
browser
subdirectory removebrowsers/
fromprogram
and remove thecwd
line.You can also choose a different
name
{ "configurations": [ { "type": "node", "request": "launch", "name": "test:browser", "program": "${workspaceFolder}/browser/node_modules/.bin/mocha", "cwd": "${workspaceFolder}/browser", "env": { "OPENSHIFT_URL": "REPLACE_ME", "HEADLESS": "false", "MDC_URL": "REPLACE_ME", "OPENSHIFT_USERNAME": "REPLACE_ME", "OPENSHIFT_PASSWORD": "REPLACE_ME" } } ] }