1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00
budibase/qa-core/README.md

29 lines
694 B
Markdown
Raw Normal View History

2022-10-01 03:03:38 +13: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-27 06:12:26 +13:00
2022-10-01 03:03:38 +13: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-10-01 03:03:38 +13:00
## Setup Server
2023-03-27 06:12:26 +13:00
You can run the local development stack by following the instructions on the main readme.
2022-10-01 03:03:38 +13:00
## Run Tests
2023-03-27 06:12:26 +13:00
2022-10-01 03:03:38 +13:00
If you configured the server using the previous command, you can run the whole test suite by using:
2023-03-27 06:12:26 +13:00
`yarn test`
2022-10-01 03:03:38 +13:00
for watch mode, where the tests will run on every change:
2023-03-27 06:12:26 +13: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-27 06:12:26 +13:00
`yarn test`
2023-03-27 06:12:26 +13:00