Skip to content
Snippets Groups Projects
Unverified Commit 5ad3f6bb authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #231 from zouyx/master

Add before_ut.bat for windows user
parents ac51fc14 388864a5
No related branches found
No related tags found
No related merge requests found
......@@ -64,9 +64,20 @@ The subdirectory examples shows how to use dubbo-go. Please read the [examples/R
## Running unit tests
### Prepare
Mac/Linux
```bash
sh ./before_ut.sh
```
Windows
```bash
before_ut.bat
```
# Run
```bash
go test ./...
# coverage
......
......@@ -64,12 +64,23 @@ TODO
## 运行单测
### 准备
Mac/Linux
```bash
sh ./before_ut.sh
```
Windows
```bash
before_ut.bat
```
# 执行
```bash
go test ./...
# 覆盖率
# coverage
go test ./... -coverprofile=coverage.txt -covermode=atomic
```
......
set zkJar=zookeeper-3.4.9-fatjar.jar
md remoting\zookeeper\zookeeper-4unittest\contrib\fatjar config_center\zookeeper\zookeeper-4unittest\contrib\fatjar registry\zookeeper\zookeeper-4unittest\contrib\fatjar
curl -L https://github.com/dubbogo/resources/raw/master/zookeeper-4unitest/contrib/fatjar/%zkJar% -o remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zkJar%
xcopy /f "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zkJar%" "config_center/zookeeper/zookeeper-4unittest/contrib/fatjar/"
xcopy /f "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zkJar%" "registry/zookeeper/zookeeper-4unittest/contrib/fatjar/"
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment