- Vet the package, make sure the tests run:
$ go vet ./... && go clean -testcache && go test ./...
? github.com/TheDonDope/govalues/cmd/govalues [no test files]
? github.com/TheDonDope/govalues/pkg/politics [no test files]
? github.com/TheDonDope/govalues/pkg/simulation [no test files]
- Build the main command:
$ go build ./...
# No output on sucess
Attention: The built binary is not (yet) ignored by git, so be careful to not commit your binaries to the repository.
- Run the testsuite with coverage enabled:
$ go test ./... -coverprofile=coverage.out
? github.com/TheDonDope/govalues/cmd/govalues [no test files]
? github.com/TheDonDope/govalues/pkg/politics [no test files]
? github.com/TheDonDope/govalues/pkg/simulation [no test files]
- Open the results in the browser:
$ go tool cover -html=coverage.out
# Opens Browser
Output files are ignored by git, so don't you even worry :)
- Run the govalues command:
$ go run ./cmd/govalues/main.go
# Log output
- Run the govalues binary:
$ ./govalues
# Log output