You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current stable versions of Go do not surface any warnings/errors when running tests
Pre-release Go 1.19 versions (used in CI) do surface an issue with the current test suite
Test output from Go 1.17.12
No errors/warnings with the "oldstable" version of Go, version 1.17.12 (linux/amd64):
$ docker container run -it --rm -v $PWD:$PWD -w $PWD golang:1.17.12 go test ./...ok github.com/atc0005/go-teams-notify/v2 0.007s? github.com/atc0005/go-teams-notify/v2/adaptivecard [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/actions [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/basic [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/custom-user-agent [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/custom-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/disable-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-multiple [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-single [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-verbose [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/actions [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/basic [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/custom-user-agent [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/custom-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/disable-validation [no test files]? github.com/atc0005/go-teams-notify/v2/internal/validator [no test files]? github.com/atc0005/go-teams-notify/v2/messagecard [no test files]
Test output from Go 1.18.4
No errors/warnings with the current stable version of Go, version 1.18.4 (linux/amd64):
$ docker container run -it --rm -v $PWD:$PWD -w $PWD golang:1.18.4 go test ./...ok github.com/atc0005/go-teams-notify/v2 0.005s? github.com/atc0005/go-teams-notify/v2/adaptivecard [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/actions [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/basic [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/custom-user-agent [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/custom-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/disable-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-multiple [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-single [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-verbose [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/actions [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/basic [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/custom-user-agent [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/custom-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/disable-validation [no test files]? github.com/atc0005/go-teams-notify/v2/internal/validator [no test files]? github.com/atc0005/go-teams-notify/v2/messagecard [no test files]
Test output from Go 1.19 (pre-release versions)
Same results using these 1.19 pre-release versions:
1.19beta1
1.19.rc1
1.19rc2
Output:
$ docker container run -it --rm -v $PWD:$PWD -w $PWD golang:1.19rc2 go test ./...
# github.com/atc0005/go-teams-notify/v2./send_test.go:238:8: second argument to errors.As should not be *errorFAIL github.com/atc0005/go-teams-notify/v2 [build failed]? github.com/atc0005/go-teams-notify/v2/adaptivecard [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/actions [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/basic [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/custom-user-agent [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/custom-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/disable-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-multiple [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-single [no test files]? github.com/atc0005/go-teams-notify/v2/examples/adaptivecard/user-mention-verbose [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/actions [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/basic [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/custom-user-agent [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/custom-validation [no test files]? github.com/atc0005/go-teams-notify/v2/examples/messagecard/disable-validation [no test files]? github.com/atc0005/go-teams-notify/v2/internal/validator [no test files]? github.com/atc0005/go-teams-notify/v2/messagecard [no test files]FAIL
The text was updated successfully, but these errors were encountered:
Remove errors.As() comparison logic until I can determine how to use a
table test configuration to reliably assert that an expected error is
of a specific type.
Tweak test failure message format slightly to improve readability.
Add `name` field to table test struct, move test name comments from
each table test into name value (so that each test case is properly
labeled in output).
Run each test case as a subtest in an effort to provide additional
isolation.
refs GH-176
Overview
Test output from Go 1.17.12
No errors/warnings with the "oldstable" version of Go, version 1.17.12 (linux/amd64):
Test output from Go 1.18.4
No errors/warnings with the current stable version of Go, version 1.18.4 (linux/amd64):
Test output from Go 1.19 (pre-release versions)
Same results using these 1.19 pre-release versions:
1.19beta1
1.19.rc1
1.19rc2
Output:
The text was updated successfully, but these errors were encountered: