-
-
Notifications
You must be signed in to change notification settings - Fork 389
Reduce the number of ad-hoc helper test functions in refactor plugin tests #4027
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
Reduce the number of ad-hoc helper test functions in refactor plugin tests #4027
Conversation
@@ -9,7 +9,6 @@ | |||
{-# LANGUAGE PolyKinds #-} | |||
{-# LANGUAGE RecordWildCards #-} | |||
{-# LANGUAGE TypeOperators #-} | |||
{-# OPTIONS_GHC -Wno-unticked-promoted-constructors #-} |
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 option is no turned on by default via common warnings import in haskell-language-server.cabal.
Huh, almost no tests were executed 🤔 is this something that's going to be resolved in #4024? |
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.
Changes look good to me, but the CI is confusing me right now.
It's a huge mess. Tidying that up would be a great blessing! |
cc04024
to
2b4074e
Compare
f5374b9
to
f26d13a
Compare
I'd like to add couple of reproducers for refactor plugin issues that annoy me in my daily work.
But the existing tests trigger my OCD.
It seems that everyone who added tests came up with their own set of helper functions and shortcuts 😄
This PR shouldn't change the coverage, but it partially reduces the chaos by making the tests reuse smaller number of simple test helper functions.
More improvements could be done, but perfect is the enemy of good..