Add coverage profile stuff

This commit is contained in:
Netscape Navigator 2020-08-11 07:25:45 -05:00
parent 9465c2d898
commit 9c49c17a1b
2 changed files with 26 additions and 2 deletions

View File

@ -2,9 +2,12 @@
A single executable to manage a Pigeon node.
TODO:
# Project Status
Don't use the Go version yet. If you want sommething stable, there is a [Ruby version that is feature complete](https://tildegit.org/PigeonProtocolConsortium/Pigeon-Ruby).
# TODO
- [ ] Get a real coverage tool going.
- [ ] Finish all the things below:
|Done?|Verb |Noun | Flag / arg 1 | Flag 2 |
@ -32,9 +35,22 @@ TODO:
| X |help | | | |
| X |version | | | |
# Run Tests
Without coverage:
```
go test ./cmd
```
With coverage:
```
go test ./cmd -coverprofile cp.out
```
# Build Project
```
go build --o=pigeon-cli
```

8
cmd/create_test.go Normal file
View File

@ -0,0 +1,8 @@
package cmd
import "testing"
func TestCreate(t *testing.T) {
// TODO: Write tests.
t.Fail()
}