mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-23 00:08:15 -07:00
README: testing subheader of build/install
[ci skip]
This commit is contained in:
@@ -43,6 +43,24 @@ $ git clone github.com/chihaya/chihaya chihaya/src/github.com/chihaya/chihaya
|
|||||||
$ godep go install chihaya/src/github.com/chihaya/cmd/chihaya
|
$ godep go install chihaya/src/github.com/chihaya/cmd/chihaya
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Testing
|
||||||
|
|
||||||
|
Chihaya has end-to-end test coverage for announces in addition to unit tests for
|
||||||
|
isolated components. To run the tests, use:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ cd $GOPATH/src/github.com/chihaya/chihaya
|
||||||
|
$ godep go test -v ./...
|
||||||
|
```
|
||||||
|
|
||||||
|
There is also a set of benchmarks for performance-critical sections of Chihaya.
|
||||||
|
These can be run similarly:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ cd $GOPATH/src/github.com/chihaya/chihaya
|
||||||
|
$ godep go test -v ./... -bench .
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Copy [`example_config.json`](https://github.com/chihaya/chihaya/blob/master/example_config.json)
|
Copy [`example_config.json`](https://github.com/chihaya/chihaya/blob/master/example_config.json)
|
||||||
@@ -72,21 +90,3 @@ The available keys and their default values are as follows:
|
|||||||
- `include_mem_stats: true`
|
- `include_mem_stats: true`
|
||||||
- `verbose_mem_stats: false`
|
- `verbose_mem_stats: false`
|
||||||
- `mem_stats_interval: "5s"`
|
- `mem_stats_interval: "5s"`
|
||||||
|
|
||||||
## Testing
|
|
||||||
|
|
||||||
Chihaya has end-to-end test coverage for announces in addition to unit tests for
|
|
||||||
isolated components. To run the tests, use:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
$ cd $GOPATH/src/github.com/chihaya/chihaya
|
|
||||||
$ godep go test -v ./...
|
|
||||||
```
|
|
||||||
|
|
||||||
There is also a set of benchmarks for performance-critical sections of Chihaya.
|
|
||||||
These can be run similarly:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
$ cd $GOPATH/src/github.com/chihaya/chihaya
|
|
||||||
$ godep go test -v ./... -bench .
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user