Run the tests with:
cd cf-abacus
npm test
You can also select the used database.
To run the end-to-end integration tests execute:
cd cf-abacus
npm run itest
See the conf.md on how to set the database.
You can run the smoke
test locally with:
cd cf-abacus
npm start
npm run smoke
npm stop
The smoke test can also verify Abacus, running on Cloud Foundry. It can be configured with command line options. Check the available options with:
npm run smoke -- --help
To run the test against secured Abacus installation on Cloud Foundry set:
export SECURED=true
export CLIENT_ID=<object-storage client id>
export CLIENT_SECRET=<object-storage client secret>
Check the security concept in security.md for details.
To run the acceptance test against secured Abacus on Cloud Foundry set these variables:
export ABACUS_PREFIX=acceptance-
export REPORTING_APP=<reporting-app>
export ORG_GUID=<org-guid>
export CF_DOMAIN=<cf-domains>
Then run the tests with
cd cf-abacus
npm run acceptance
The command line options of the acceptance test can be listed with:
npm run acceptance -- --help
You can run the dupe
test locally with:
cd cf-abacus
npm start
npm run smoke
npm stop
With Abacus on Cloud Foundry configure the test with the command line options listed here:
npm run dupe -- --help
Set these variables to run the test against secured Abacus on Cloud Foundry:
export SECURED=true
export CLIENT_ID=<object-storage client id>
export CLIENT_SECRET=<object-storage client secret>
Check the security concept in security.md for details.
You can run the perf
test locally with:
cd cf-abacus
npm start
npm run perf
npm stop
Check the command line options of the test with:
npm run perf -- --help
Abacus provides Concourse pipelines. The test pipeline executes the unit, smoke and dupe tests against the supported databases. The deploy pipeline executes the smoke test to verify that the deployed Abacus works correctly.