Skip to content

Commit

Permalink
fix(module): change name of module to reflect my fork
Browse files Browse the repository at this point in the history
  • Loading branch information
John Rinehart committed Aug 12, 2021
1 parent 232870c commit 4ae2bea
Show file tree
Hide file tree
Showing 46 changed files with 651 additions and 737 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ builds:
- arm64
- arm
env: [CGO_ENABLED=0]
ldflags: ["-s -w -X gotest.tools/gotestsum/cmd.version={{.Version}}"]
ldflags: ["-s -w -X github.com/johnrichardrinehart/gotestsum/cmd.version={{.Version}}"]

checksum:
name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt'
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

`gotestsum` runs tests using `go test --json`, prints formatted test output, and a summary of the test run.
It is designed to work well for both local development, and for automation like CI.
`gotest.tools/gotestsum/testjson` ([godoc](https://pkg.go.dev/gotest.tools/gotestsum/testjson)) is a library
`github.com/johnrichardrinehart/gotestsum/testjson` ([godoc](https://pkg.go.dev/github.com/johnrichardrinehart/gotestsum/testjson)) is a library
that can be used to read [`test2json`](https://golang.org/cmd/test2json/) output.

See [documentation](#documentation).

## Install

Download a binary from [releases](https://github.com/gotestyourself/gotestsum/releases), or build from
source with `go get gotest.tools/gotestsum`.
source with `go get github.com/johnrichardrinehart/gotestsum`.

## Demo
A demonstration of three `--format` options.
Expand Down Expand Up @@ -138,12 +138,12 @@ TESTS_TOTAL # number of tests run
To get more details about the test run, such as failure messages or the full list of failed
tests, run `gotestsum` with either a `--jsonfile` or `--junitfile` and parse the
file from the post-run-command. The
[gotestsum/testjson](https://pkg.go.dev/gotest.tools/gotestsum/testjson?tab=doc)
[gotestsum/testjson](https://pkg.go.dev/github.com/johnrichardrinehart/gotestsum/testjson?tab=doc)
package may be used to parse the JSON file output.

**Example: desktop notifications**

First install the example notification command with `go get gotest.tools/gotestsum/contrib/notify`.
First install the example notification command with `go get github.com/johnrichardrinehart/gotestsum/contrib/notify`.
The command will be downloaded to `$GOPATH/bin` as `notify`. Note that this
example `notify` command only works on macOS with
[terminal-notifer](https://github.com/julienXX/terminal-notifier) installed.
Expand Down Expand Up @@ -355,9 +355,9 @@ gotestsum --watch --format testname

## Development

[![Godoc](https://godoc.org/gotest.tools/gotestsum?status.svg)](https://pkg.go.dev/gotest.tools/gotestsum?tab=subdirectories)
[![Godoc](https://godoc.org/github.com/johnrichardrinehart/gotestsum?status.svg)](https://pkg.go.dev/github.com/johnrichardrinehart/gotestsum?tab=subdirectories)
[![CircleCI](https://circleci.com/gh/gotestyourself/gotestsum/tree/main.svg?style=shield)](https://circleci.com/gh/gotestyourself/gotestsum/tree/main)
[![Go Reportcard](https://goreportcard.com/badge/gotest.tools/gotestsum)](https://goreportcard.com/report/gotest.tools/gotestsum)
[![Go Reportcard](https://goreportcard.com/badge/github.com/johnrichardrinehart/gotestsum)](https://goreportcard.com/report/github.com/johnrichardrinehart/gotestsum)

Pull requests and bug reports are welcome! Please open an issue first for any
big changes.
Expand Down
4 changes: 2 additions & 2 deletions cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"github.com/dnephin/pflag"
"github.com/google/shlex"
"github.com/johnrichardrinehart/gotestsum/internal/junitxml"
"github.com/johnrichardrinehart/gotestsum/testjson"
"github.com/pkg/errors"
"gotest.tools/gotestsum/internal/junitxml"
"gotest.tools/gotestsum/testjson"
)

type hideSummaryValue struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"os"
"os/exec"

"github.com/johnrichardrinehart/gotestsum/internal/junitxml"
"github.com/johnrichardrinehart/gotestsum/log"
"github.com/johnrichardrinehart/gotestsum/testjson"
"github.com/pkg/errors"
"gotest.tools/gotestsum/internal/junitxml"
"gotest.tools/gotestsum/log"
"gotest.tools/gotestsum/testjson"
)

type eventHandler struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"gotest.tools/gotestsum/testjson"
"github.com/johnrichardrinehart/gotestsum/testjson"
"gotest.tools/v3/assert"
"gotest.tools/v3/env"
"gotest.tools/v3/golden"
Expand Down
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"github.com/dnephin/pflag"
"github.com/fatih/color"
"github.com/johnrichardrinehart/gotestsum/log"
"github.com/johnrichardrinehart/gotestsum/testjson"
"github.com/pkg/errors"
"gotest.tools/gotestsum/log"
"gotest.tools/gotestsum/testjson"
)

var version = "dev"
Expand Down
2 changes: 1 addition & 1 deletion cmd/main_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"gotest.tools/gotestsum/internal/text"
"github.com/johnrichardrinehart/gotestsum/internal/text"
"gotest.tools/v3/assert"
"gotest.tools/v3/env"
"gotest.tools/v3/fs"
Expand Down
2 changes: 1 addition & 1 deletion cmd/rerunfails.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"sort"

"gotest.tools/gotestsum/testjson"
"github.com/johnrichardrinehart/gotestsum/testjson"
)

type rerunOpts struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/rerunfails_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"gotest.tools/gotestsum/testjson"
"github.com/johnrichardrinehart/gotestsum/testjson"
"gotest.tools/v3/assert"
"gotest.tools/v3/fs"
"gotest.tools/v3/golden"
Expand Down
6 changes: 3 additions & 3 deletions cmd/testdata/TestWriteRerunFailsReport-expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gotest.tools/gotestsum/testdata/e2e/flaky.TestFailsOften: 4 runs, 3 failures
gotest.tools/gotestsum/testdata/e2e/flaky.TestFailsRarely: 2 runs, 1 failures
gotest.tools/gotestsum/testdata/e2e/flaky.TestFailsSometimes: 3 runs, 2 failures
github.com/johnrichardrinehart/gotestsum/testdata/e2e/flaky.TestFailsOften: 4 runs, 3 failures
github.com/johnrichardrinehart/gotestsum/testdata/e2e/flaky.TestFailsRarely: 2 runs, 1 failures
github.com/johnrichardrinehart/gotestsum/testdata/e2e/flaky.TestFailsSometimes: 3 runs, 2 failures
Loading

0 comments on commit 4ae2bea

Please sign in to comment.