Repository: elliotchance/pie
Pull request #82 (2019-05-02 23:08:59)

ci: adding test stats


<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/elliotchance/pie/82)
<!-- Reviewable:end -->


codecov-io: # [Codecov](https://codecov.io/gh/elliotchance/pie/pull/82?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@71a8d56`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/elliotchance/pie/pull/82/graphs/tree.svg?width=650&token=OvugwUQGM3&height=150&src=pr)](https://codecov.io/gh/elliotchance/pie/pull/82?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##             master    #82   +/-   ##
=======================================
  Coverage          ?   100%           
=======================================
  Files             ?      7           
  Lines             ?    690           
  Branches          ?      0           
=======================================
  Hits              ?    690           
  Misses            ?      0           
  Partials          ?      0
```



------

[Continue to review full report at Codecov](https://codecov.io/gh/elliotchance/pie/pull/82?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/elliotchance/pie/pull/82?src=pr&el=footer). Last update [71a8d56...5ad885a](https://codecov.io/gh/elliotchance/pie/pull/82?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).


Patch:
diff --git a/.travis.yml b/.travis.yml
index 449e3bc..441a920 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,10 @@ go:
 
 script:
   # Make sure everything is formatted correctly.
-  - $(exit $(go fmt ./... | grep -v /vendor/ | wc -l))
+  - $(exit $(go fmt ./... | wc -l))
+
+  # Record all assertions for stats.
+  - $(exit $(grep -r '"github.com/stretchr/testify"' . --include \*.go | wc -l))
 
   # Make sure go generate is in sync.
   - go generate ./... && go install && go generate ./...
diff --git a/go.mod b/go.mod
index dfc41da..dccf866 100644
--- a/go.mod
+++ b/go.mod
@@ -4,5 +4,5 @@ go 1.12
 
 require (
 	github.com/davecgh/go-spew v1.1.1 // indirect
-	github.com/stretchr/testify v1.3.0
+	github.com/elliotchance/testify-stats v1.0.0
 )
diff --git a/go.sum b/go.sum
index 4f76e62..911a69e 100644
--- a/go.sum
+++ b/go.sum
@@ -2,6 +2,8 @@ github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/elliotchance/testify-stats v1.0.0 h1:CMcRBfQIB0WwT1+aY38MM4ShFqhPyP6jkHRytSvXLzI=
+github.com/elliotchance/testify-stats v1.0.0/go.mod h1:Mc25k7L4E65uf6CfW+s/pY04XcoiqQBrfIRsWQcgweA=
 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=


Test patch:
diff --git a/pie/carpointers_test.go b/pie/carpointers_test.go
index f78a91a..c9229e9 100644
--- a/pie/carpointers_test.go
+++ b/pie/carpointers_test.go
@@ -6,7 +6,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/stretchr/testify/assert"
+	"github.com/elliotchance/testify-stats/assert"
 )
 
 var carPointerA = &car{"a", "green"}
diff --git a/pie/cars_test.go b/pie/cars_test.go
index 1d7024b..5b64340 100644
--- a/pie/cars_test.go
+++ b/pie/cars_test.go
@@ -6,7 +6,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/stretchr/testify/assert"
+	"github.com/elliotchance/testify-stats/assert"
 )
 
 var carsContainsTests = []struct {
diff --git a/pie/currencies_test.go b/pie/currencies_test.go
index ba39c03..fec479b 100644
--- a/pie/currencies_test.go
+++ b/pie/currencies_test.go
@@ -1,7 +1,7 @@
 package pie
 
 import (
-	"github.com/stretchr/testify/assert"
+	"github.com/elliotchance/testify-stats/assert"
 	"sort"
 	"testing"
 )
diff --git a/pie/float64s_test.go b/pie/float64s_test.go
index ef8f8bb..4da645e 100644
--- a/pie/float64s_test.go
+++ b/pie/float64s_test.go
@@ -5,7 +5,7 @@ import (
 	"math/rand"
 	"testing"
 
-	"github.com/stretchr/testify/assert"
+	"github.com/elliotchance/testify-stats/assert"
 )
 
 var float64sContainsTests = []struct {
diff --git a/pie/ints_test.go b/pie/ints_test.go
index 7edd2be..b93c6b4 100644
--- a/pie/ints_test.go
+++ b/pie/ints_test.go
@@ -5,7 +5,7 @@ import (
 	"math/rand"
 	"testing"
 
-	"github.com/stretchr/testify/assert"
+	"github.com/elliotchance/testify-stats/assert"
 )
 
 var intsContainsTests = []struct {
diff --git a/pie/main_test.go b/pie/main_test.go
index f0899c7..9130472 100644
--- a/pie/main_test.go
+++ b/pie/main_test.go
@@ -1,10 +1,16 @@
 package pie
 
 import (
-	"github.com/stretchr/testify/assert"
+	testify_stats "github.com/elliotchance/testify-stats"
+	"github.com/elliotchance/testify-stats/assert"
+	"os"
 	"testing"
 )
 
+func TestMain(m *testing.M) {
+	os.Exit(testify_stats.Run(m))
+}
+
 func assertImmutableStrings(t *testing.T, ss *Strings) func() {
 	before := (*ss).JSONString()
 
diff --git a/pie/myints_test.go b/pie/myints_test.go
index 49cc10a..2a20e3d 100644
--- a/pie/myints_test.go
+++ b/pie/myints_test.go
@@ -1,7 +1,7 @@
 package pie
 
 import (
-	"github.com/stretchr/testify/assert"
+	"github.com/elliotchance/testify-stats/assert"
 	"testing"
 )
 
diff --git a/pie/strings_test.go b/pie/strings_test.go
index f9673c2..52c9973 100644
--- a/pie/strings_test.go
+++ b/pie/strings_test.go
@@ -6,7 +6,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/stretchr/testify/assert"
+	"github.com/elliotchance/testify-stats/assert"
 )
 
 var stringsContainsTests = []struct {