Skip to content
Snippets Groups Projects
Commit 3b98951a authored by zouyixian's avatar zouyixian
Browse files

Add before_ut.bat match windows user

parent c5e32420
No related branches found
No related tags found
No related merge requests found
...@@ -64,9 +64,22 @@ The subdirectory examples shows how to use dubbo-go. Please read the [examples/R ...@@ -64,9 +64,22 @@ The subdirectory examples shows how to use dubbo-go. Please read the [examples/R
## Running unit tests ## Running unit tests
### Prepare
Mac/Linux
```bash ```bash
sh ./before_ut.sh sh ./before_ut.sh
```
Windows
```bash
before_ut.bat
```
# Run
```bash
go test ./... go test ./...
# coverage # coverage
......
...@@ -64,12 +64,25 @@ TODO ...@@ -64,12 +64,25 @@ TODO
## 运行单测 ## 运行单测
### 准备
Mac/Linux
```bash ```bash
sh ./before_ut.sh sh ./before_ut.sh
```
Windows
```bash
before_ut.bat
```
# 执行
```bash
go test ./... go test ./...
# 覆盖率 # coverage
go test ./... -coverprofile=coverage.txt -covermode=atomic go test ./... -coverprofile=coverage.txt -covermode=atomic
``` ```
......
set zk=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
certutil.exe -urlcache -split -f https://github.com/dubbogo/resources/raw/master/zookeeper-4unitest/contrib/fatjar/%zk% remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zk%
xcopy /f "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zk%" "config_center/zookeeper/zookeeper-4unittest/contrib/fatjar/"
xcopy /f "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zk%" "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