From 9c49c17a1b0edb80b3ff5f0497a26935d53cf40b Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Tue, 11 Aug 2020 07:25:45 -0500 Subject: [PATCH] Add coverage profile stuff --- README.md | 20 ++++++++++++++++++-- cmd/create_test.go | 8 ++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 cmd/create_test.go diff --git a/README.md b/README.md index 8143ffe..5d35c97 100644 --- a/README.md +++ b/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 +``` diff --git a/cmd/create_test.go b/cmd/create_test.go new file mode 100644 index 0000000..5745fa9 --- /dev/null +++ b/cmd/create_test.go @@ -0,0 +1,8 @@ +package cmd + +import "testing" + +func TestCreate(t *testing.T) { + // TODO: Write tests. + t.Fail() +}