Skip to content

dev: follow standards by using 'want' instead of 'ERROR' for tests #3104

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

Merged
merged 8 commits into from
Aug 20, 2022

Conversation

ldez
Copy link
Member

@ldez ldez commented Aug 17, 2022

This is a complete rewrite of the test system.

Inspired by https://pkg.go.dev/golang.org/x/tools/go/analysis/analysistest#Run

extra: I also add a new directives: golangcitest:expected_exitcode directive. Still the same goal: robustness and high-quality test outputs.

Fixes #1222

@ldez ldez added enhancement New feature or improvement area: tests Continuous integration, tests and other checks labels Aug 17, 2022
@ldez ldez force-pushed the feat/test-parsing branch from 6249032 to dc98d07 Compare August 17, 2022 02:59
@ldez ldez changed the title dev: follow standard by using 'want' instead of 'ERROR' for tests dev: follow standards by using 'want' instead of 'ERROR' for tests Aug 17, 2022
@ldez ldez force-pushed the feat/test-parsing branch from 33b6fe4 to ae02093 Compare August 17, 2022 11:29
@ldez ldez force-pushed the feat/test-parsing branch 2 times, most recently from 79345a7 to 3b8e8f8 Compare August 18, 2022 00:09
@ldez ldez force-pushed the feat/test-parsing branch from 3b8e8f8 to df628f6 Compare August 18, 2022 00:15
Copy link
Member

@bombsimon bombsimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the long wait, really appreciate the work on this PR. Will make it easy to port tests but also just great improvement to the runner!

Copy link
Member

@bombsimon bombsimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@ldez ldez merged commit 2b4c9ab into golangci:master Aug 20, 2022
@ldez ldez deleted the feat/test-parsing branch August 20, 2022 16:53
@ldez
Copy link
Member Author

ldez commented Aug 20, 2022

@bombsimon thank you for the review 👍

SeigeC pushed a commit to SeigeC/golangci-lint that referenced this pull request Apr 4, 2023
@ldez ldez added this to the v1.49 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tests Continuous integration, tests and other checks enhancement New feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supports analysis package error format in golangci-lint test
2 participants