update docs & go unit test make cmd
parent
fd20f608fd
commit
713f96d311
3
Makefile
3
Makefile
|
@ -4,3 +4,6 @@ SHELL = /bin/bash
|
|||
|
||||
test:
|
||||
./tests/test_auction_flow.sh
|
||||
|
||||
utest:
|
||||
go test ./...
|
||||
|
|
28
README.md
28
README.md
|
@ -26,24 +26,40 @@ This repository contains the base chain implementation that Colinear's compute m
|
|||
|
||||
To build the chain:
|
||||
|
||||
```ignite chain build```
|
||||
```
|
||||
ignite chain build
|
||||
```
|
||||
|
||||
To serve the chain:
|
||||
|
||||
```ignite chain serve```
|
||||
```
|
||||
ignite chain serve
|
||||
```
|
||||
|
||||
### Unit Tests
|
||||
|
||||
Unit tests use Go's built-in testing system. To test any specific feature or subpackage:
|
||||
Unit tests use Go's built-in testing system. To run all unit tests:
|
||||
|
||||
```go test ./path/to/package```
|
||||
```
|
||||
make utest
|
||||
```
|
||||
|
||||
To test any specific subpackage:
|
||||
|
||||
```
|
||||
go test ./path/to/package
|
||||
```
|
||||
|
||||
### Integration Tests
|
||||
|
||||
Integration tests use a custom bash testing framework that interacts with a running instance of the chain. To run all integration tests:
|
||||
|
||||
```make test```
|
||||
```
|
||||
make test
|
||||
```
|
||||
|
||||
Integration tests can also be run individually:
|
||||
|
||||
```./tests/<specific_test>.sh```
|
||||
```
|
||||
./tests/<specific_test>.sh
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue