Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/development/test.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Test

### Unit Test
## Unit Test

Run all unit tests:

```shell
go test ./...
```

### End-to-end Tests
## End-to-end Tests

#### 1. e2e Test with Github Action
### 1 e2e Test with GitHub Action

GitHub Actions will run e2e test automatically.

#### 2. e2e Test Locally
### 2 e2e Test Locally

```shell
bash hack/e2e/e2e-run.sh
Expand Down
27 changes: 26 additions & 1 deletion docs/development/test.zh.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# 测试

todo
## 单元测试

运行所有的单元测试:

```shell
go test ./...
```

## 端到端测试

### 1 使用 GitHub Action 运行端到端测试

GitHub Actions 会在代码提交时自动运行端到端测试。

### 2 在本地运行端到端测试

```shell
bash hack/e2e/e2e-run.sh
```

请在测试前设置以下环境变量:

- GITHUB_USER
- GITHUB_TOKEN
- DOCKERHUB_USERNAME
- DOCKERHUB_TOKEN