update docs & go unit test make cmd

master
michael 2022-09-05 00:42:28 +00:00
parent fd20f608fd
commit 713f96d311
2 changed files with 25 additions and 6 deletions

View File

@ -4,3 +4,6 @@ SHELL = /bin/bash
test: test:
./tests/test_auction_flow.sh ./tests/test_auction_flow.sh
utest:
go test ./...

View File

@ -26,24 +26,40 @@ This repository contains the base chain implementation that Colinear's compute m
To build the chain: To build the chain:
```ignite chain build``` ```
ignite chain build
```
To serve the chain: To serve the chain:
```ignite chain serve``` ```
ignite chain serve
```
### Unit Tests ### 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
Integration tests use a custom bash testing framework that interacts with a running instance of the chain. To run all 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: Integration tests can also be run individually:
```./tests/<specific_test>.sh``` ```
./tests/<specific_test>.sh
```