-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rework tests from gocheck to stdlib testing #17
Conversation
There are probably things that I missed here. I'm sending this PR for preliminary review. It's fairly big, and it's going to need some eyes on it before a potential merge. |
Ugh. I completely forgot Go < 1.7 doesn't have subtests. Travis isn't happy. What should we do? I can get rid of all the subtests if we need to. |
@acln0 I wouldn't be against dropping the test runners for the older Go versions within the context of this PR. Outside of this PR, we should have the discussion as an organization as to whether our support of Go runtime versions differs from the authors. |
Filed #18 for discussion. |
In preparation for executing on #15 (already opened in #17) we need to disable testing against older versions of the Go toolchain. There are a few reasons for this, the largest being they don't support subtests. These versions, including Go 1.7 and 1.8, are EOL by the Go authors so there's also lack of upstream support for these toolchains. This was discussed a bit in #18 and on [Slack](https://gophers.slack.com/archives/CBP4N9BEU/p1531704009000014). Fixes #18 Signed-off-by: Tim Heckman <t@heckman.io>
In preparation for executing on #15 (already opened in #17) we need to disable testing against older versions of the Go toolchain. There are a few reasons for this, the largest being they don't support subtests. These versions, including Go 1.7 and 1.8, are EOL by the Go authors so there's also lack of upstream support for these toolchains. This was discussed a bit in #18 and on [Slack](https://gophers.slack.com/archives/CBP4N9BEU/p1531704009000014). Fixes #18 Signed-off-by: Tim Heckman <t@heckman.io>
In preparation for executing on #15 (already opened in #17) we need to disable testing against older versions of the Go toolchain. There are a few reasons for this, the largest being they don't support subtests. These versions, including Go 1.7 and 1.8, are EOL by the Go authors so there's also lack of upstream support for these toolchains. This was discussed a bit in #18 and on [Slack](https://gophers.slack.com/archives/CBP4N9BEU/p1531704009000014). Fixes #18 Signed-off-by: Tim Heckman <t@heckman.io>
In preparation for executing on #15 (already opened in #17) we need to disable testing against older versions of the Go toolchain. There are a few reasons for this, the largest being they don't support subtests. These versions, including Go 1.7 and 1.8, are EOL by the Go authors so there's also lack of upstream support for these toolchains. This was discussed a bit in #18 and on [Slack](https://gophers.slack.com/archives/CBP4N9BEU/p1531704009000014). Fixes #18 Signed-off-by: Tim Heckman <t@heckman.io>
In preparation for executing on #15 (already opened in #17) we need to disable testing against older versions of the Go toolchain. There are a few reasons for this, the largest being they don't support subtests. These versions, including Go 1.7 and 1.8, are EOL by the Go authors so there's also lack of upstream support for these toolchains. This was discussed a bit in #18 and on [Slack](https://gophers.slack.com/archives/CBP4N9BEU/p1531704009000014). Fixes #18 Signed-off-by: Tim Heckman <t@heckman.io>
@acln0 can you rebase this branch against |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from that, looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
Use the standard library testing package instead of gocheck. Switch from multiple assertions to table-driven tests where appropriate. Update fuzz testing support: add code to generate a diverse corpus based on existing parser tests, add instructions on how to run the fuzzer, check in the existing corpus.
@theckman Done. @jadr2ddude Yes, that works, because the |
@acln0 awesome! I did a quick pass on this PR before, but let me give it a look again tonight. It'll be a few hours until I'm at home and able to give it some proper 👀. |
Use the standard library testing package instead of gocheck. Switch
from multiple assertions to table-driven tests where appropriate.
Update fuzz testing support: add code to generate a diverse corpus
based on existing parser tests, add instructions on how to run the
fuzzer, check in the existing corpus.