add notes about running tests locally to readme
这个提交包含在:
父节点
f28bc904ad
当前提交
0e7232a50c
共有 1 个文件被更改,包括 41 次插入 和 0 次删除
41
README.md
41
README.md
|
|
@ -57,6 +57,47 @@ To start the development environment, run the following command in your terminal
|
||||||
docker-compose up
|
docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Running Cypress Tests Locally
|
||||||
|
|
||||||
|
Follow these steps to run the Cypress tests locally on your machine:
|
||||||
|
|
||||||
|
1. **Clone the repository**
|
||||||
|
|
||||||
|
If you haven't already, clone the repository to your local machine
|
||||||
|
|
||||||
|
2. **Setup .env file**
|
||||||
|
|
||||||
|
Copy the sample `.env` file and adjust it to your local environment:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd your-repo
|
||||||
|
cp .env.sample .env
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Build Docker services**
|
||||||
|
|
||||||
|
Build and start the Docker services:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Install Cypress**
|
||||||
|
|
||||||
|
Navigate into the project directory and install Cypress:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install cypress
|
||||||
|
```
|
||||||
|
|
||||||
|
5. **Run the Cypress tests**
|
||||||
|
|
||||||
|
After the installation is complete, you can run the Cypress tests:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx cypress run
|
||||||
|
```
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
Cloudlog has two support systems for code issues use Github issues, however if you have general issues with setting up your server please use our general discussion forum [https://github.com/magicbug/Cloudlog/discussions](https://github.com/magicbug/Cloudlog/discussions).
|
Cloudlog has two support systems for code issues use Github issues, however if you have general issues with setting up your server please use our general discussion forum [https://github.com/magicbug/Cloudlog/discussions](https://github.com/magicbug/Cloudlog/discussions).
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用