-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fixes #2: Incorrect parsing of Testify output * Added artifact build * Added non-verbose self-test * Longer buffering
- Loading branch information
Janos Bonic
authored
Nov 11, 2021
1 parent
f551649
commit 5ed11e4
Showing
30 changed files
with
581 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module "github.com/haveyoudebuggedit/example" | ||
|
||
go 1.16 | ||
|
||
require ( | ||
github.com/stretchr/testify v1.7.0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
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/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= | ||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= | ||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package testify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package testify | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestTestify(t *testing.T) { | ||
assert.Equal(t, 50, 48) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module "github.com/haveyoudebuggedit/example" | ||
|
||
go 1.16 | ||
|
||
require ( | ||
github.com/stretchr/testify v1.7.0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
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/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= | ||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= | ||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package subpackage1 |
12 changes: 12 additions & 0 deletions
12
_testsource/testifymultipackage/subpackage1/testify_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package subpackage1 | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestTestify(t *testing.T) { | ||
assert.Equal(t, 50, 50) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package subpackage1 |
11 changes: 11 additions & 0 deletions
11
_testsource/testifymultipackage/subpackage2/testify_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package subpackage1 | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestTestify(t *testing.T) { | ||
assert.Equal(t, 50, 48) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"test": "TestNothing" | ||
}, | ||
{ | ||
"action": "pass" | ||
"action": "pass-final" | ||
}, | ||
{ | ||
"action": "coverage", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"prefix": null, | ||
"downloads": { | ||
"packages": null, | ||
"failed": false | ||
}, | ||
"packages": [ | ||
{ | ||
"name": "github.com/haveyoudebuggedit/gotestfmt", | ||
"result": "SKIP", | ||
"duration": "0s", | ||
"coverage": null, | ||
"output": "", | ||
"testcases": null, | ||
"reason": "no test files" | ||
}, | ||
{ | ||
"name": "github.com/haveyoudebuggedit/gotestfmt/cmd/gotestfmt", | ||
"result": "SKIP", | ||
"duration": "0s", | ||
"coverage": null, | ||
"output": "", | ||
"testcases": null, | ||
"reason": "no test files" | ||
}, | ||
{ | ||
"name": "github.com/haveyoudebuggedit/gotestfmt/parser", | ||
"result": "PASS", | ||
"duration": "0s", | ||
"coverage": null, | ||
"output": "", | ||
"testcases": null, | ||
"reason": "" | ||
}, | ||
{ | ||
"name": "github.com/haveyoudebuggedit/gotestfmt/renderer", | ||
"result": "SKIP", | ||
"duration": "0s", | ||
"coverage": null, | ||
"output": "", | ||
"testcases": null, | ||
"reason": "no test files" | ||
}, | ||
{ | ||
"name": "github.com/haveyoudebuggedit/gotestfmt/testutil", | ||
"result": "SKIP", | ||
"duration": "0s", | ||
"coverage": null, | ||
"output": "", | ||
"testcases": null, | ||
"reason": "no test files" | ||
}, | ||
{ | ||
"name": "github.com/haveyoudebuggedit/gotestfmt/tokenizer", | ||
"result": "PASS", | ||
"duration": "0s", | ||
"coverage": null, | ||
"output": "", | ||
"testcases": null, | ||
"reason": "" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[ | ||
{ | ||
"action": "skip", | ||
"package": "github.com/haveyoudebuggedit/gotestfmt", | ||
"version": "", | ||
"test": "", | ||
"elapsed": "0s", | ||
"output": "bm8gdGVzdCBmaWxlcw==", | ||
"cached": false, | ||
"coverage": null | ||
}, | ||
{ | ||
"action": "skip", | ||
"package": "github.com/haveyoudebuggedit/gotestfmt/cmd/gotestfmt", | ||
"version": "", | ||
"test": "", | ||
"elapsed": "0s", | ||
"output": "bm8gdGVzdCBmaWxlcw==", | ||
"cached": false, | ||
"coverage": null | ||
}, | ||
{ | ||
"action": "pass", | ||
"package": "github.com/haveyoudebuggedit/gotestfmt/parser", | ||
"version": "", | ||
"test": "", | ||
"elapsed": "0s", | ||
"output": null, | ||
"cached": true, | ||
"coverage": null | ||
}, | ||
{ | ||
"action": "skip", | ||
"package": "github.com/haveyoudebuggedit/gotestfmt/renderer", | ||
"version": "", | ||
"test": "", | ||
"elapsed": "0s", | ||
"output": "bm8gdGVzdCBmaWxlcw==", | ||
"cached": false, | ||
"coverage": null | ||
}, | ||
{ | ||
"action": "skip", | ||
"package": "github.com/haveyoudebuggedit/gotestfmt/testutil", | ||
"version": "", | ||
"test": "", | ||
"elapsed": "0s", | ||
"output": "bm8gdGVzdCBmaWxlcw==", | ||
"cached": false, | ||
"coverage": null | ||
}, | ||
{ | ||
"action": "pass", | ||
"package": "github.com/haveyoudebuggedit/gotestfmt/tokenizer", | ||
"version": "", | ||
"test": "", | ||
"elapsed": "0s", | ||
"output": null, | ||
"cached": true, | ||
"coverage": null | ||
}, | ||
{ | ||
"action": "stdout", | ||
"package": "", | ||
"version": "", | ||
"test": "", | ||
"elapsed": "0s", | ||
"output": "", | ||
"cached": false, | ||
"coverage": null | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
? github.com/haveyoudebuggedit/gotestfmt [no test files] | ||
? github.com/haveyoudebuggedit/gotestfmt/cmd/gotestfmt [no test files] | ||
ok github.com/haveyoudebuggedit/gotestfmt/parser (cached) | ||
? github.com/haveyoudebuggedit/gotestfmt/renderer [no test files] | ||
? github.com/haveyoudebuggedit/gotestfmt/testutil [no test files] | ||
ok github.com/haveyoudebuggedit/gotestfmt/tokenizer (cached) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
"test": "TestNothing" | ||
}, | ||
{ | ||
"action": "pass" | ||
"action": "pass-final" | ||
}, | ||
{ | ||
"action": "pass", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ | |
"elapsed": "10.020s" | ||
}, | ||
{ | ||
"action": "pass" | ||
"action": "pass-final" | ||
}, | ||
{ | ||
"action": "pass", | ||
|
Oops, something went wrong.