Cypress project for redcap testing:
- system config
- em config
- (projects)
Clone repository:
git clone https://github.com/tertek/redcap-testing-spec.git
cd redcap-dev-spec
Install npm dependencies and Cypress client:
npm install
.\node_modules\.bin\cypress install
Create Cypress Config cypress.env.json
,
for example:
{
"environment": "local",
"version": "13.1.32",
"username": "username",
"password": "password",
"api_token": "api-token"
}
Ensure required permissions are set within project directory:
- Directory /cypress/downloads needs to be writable
- Directory /cypress/fixtures needs to be readable
Open in Cypress Client:
.\node_modules\.bin\cypress open
Headless with calling reports::
.\node_modules\.bin\cypress run
In case of errors, clear cache:
.\node_modules\.bin\cypress cache clear