Add coverage profile stuff
This commit is contained in:
parent
9465c2d898
commit
9c49c17a1b
20
README.md
20
README.md
|
@ -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
|
||||
```
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package cmd
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestCreate(t *testing.T) {
|
||||
// TODO: Write tests.
|
||||
t.Fail()
|
||||
}
|
Loading…
Reference in New Issue