-
Notifications
You must be signed in to change notification settings - Fork 145
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
fold ElmFormat.Cli{,Test} into ElmFormat.Integration #453
Conversation
(Not sure we want to keep the golden test call out to |
For #302 again! |
This also relates to #72 |
tests/Integration/CliTest.hs
Outdated
, world | ||
|> run "elm-format-xxx" [] | ||
|> TestWorld.goldenStdout "usage instructions" | ||
"tests/Integration/data/usage.stdout" |
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.
I think you forgot to check this file in, or else forgot to change this path when you moved the file?
Looks like there's one mistake here (see comment above). Otherwise, this looks great! |
Thanks for catching that! Indeed, I was moving files around later and tests were passing due to an untracked copy. Pushed a fix. Should I amend it into the buggy commit? |
But Travis passed anyway? |
No need to amend. Travis passed originally because apparently the behavior of golden is to create the file (and not error) if the file doesn't exist. |
Thanks! |
fold ElmFormat.Cli{,Test} into ElmFormat.Integration
This moves the two test cases that require
ElmFormat.Cli
more-or-less faithfully intoIntegration
, which runs against the properElmFormat.main
implementation. With minimal extensions toTestWorld
. To deal with thoseElmFormat.Cli
compile warnings. Joint work with @alicebob.