budibase/qa-core/README.md

29 lines
694 B
Markdown
Raw Normal View History

2022-09-30 16:03:38 +02:00
# QA Core API Tests
The QA Core API tests are a jest suite that run directly against the budibase backend APIs.
## Auto Setup
2023-03-26 19:12:26 +02:00
2022-09-30 16:03:38 +02:00
You can run the whole test suite with one command, that spins up the budibase server and runs the jest tests:
`yarn test:ci`
2022-09-30 16:03:38 +02:00
## Setup Server
2023-03-26 19:12:26 +02:00
You can run the local development stack by following the instructions on the main readme.
2022-09-30 16:03:38 +02:00
## Run Tests
2023-03-26 19:12:26 +02:00
2022-09-30 16:03:38 +02:00
If you configured the server using the previous command, you can run the whole test suite by using:
2023-03-26 19:12:26 +02:00
`yarn test`
2022-09-30 16:03:38 +02:00
for watch mode, where the tests will run on every change:
2023-03-26 19:12:26 +02:00
`yarn test:watch`
To run tests locally against a cloud service you can update the configuration inside the `.env` file and run:
2023-03-26 19:12:26 +02:00
`yarn test`
2023-03-26 19:12:26 +02:00