Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 697 Bytes

TESTS.md

File metadata and controls

42 lines (27 loc) · 697 Bytes

Run tests

Unit tests

To run unit tests just go to the root of the project and run

npm test

Integration tests

Define variables which is mandatory to run tests

export ODATA_USER=UZIVATEL
export ODATA_PASSWORD=tajN3hes10
export ODATA_URL=https://your.syste/path/to/your/service/

Disable SSL certificate checking if your system has self-signed certificate or certificate from untrusted authority.

export NODE_TLS_REJECT_UNAUTHORIZED=0;

Go to root directory of the project and run

npm run integration

If you would like to debug integration tests run

npm run integration-debug

and then open DevTools.