Skip to content
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

Merged
merged 9 commits into from
Feb 1, 2018
Merged

Conversation

robx
Copy link
Contributor

@robx robx commented Jan 30, 2018

This moves the two test cases that require ElmFormat.Cli more-or-less faithfully into Integration, which runs against the proper ElmFormat.main implementation. With minimal extensions to TestWorld. To deal with those ElmFormat.Cli compile warnings. Joint work with @alicebob.

@robx
Copy link
Contributor Author

robx commented Jan 30, 2018

(Not sure we want to keep the golden test call out to diff, used that for debugging, but it's sort of nice.)

@alicebob
Copy link
Contributor

For #302 again!

@avh4
Copy link
Owner

avh4 commented Jan 31, 2018

This also relates to #72

@avh4 avh4 self-assigned this Jan 31, 2018
, world
|> run "elm-format-xxx" []
|> TestWorld.goldenStdout "usage instructions"
"tests/Integration/data/usage.stdout"
Copy link
Owner

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?

@avh4 avh4 removed their assignment Jan 31, 2018
@avh4
Copy link
Owner

avh4 commented Jan 31, 2018

Looks like there's one mistake here (see comment above). Otherwise, this looks great!

@robx
Copy link
Contributor Author

robx commented Jan 31, 2018

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?

@alicebob
Copy link
Contributor

But Travis passed anyway?

@avh4
Copy link
Owner

avh4 commented Jan 31, 2018

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.

@avh4 avh4 merged commit fe51eed into avh4:master Feb 1, 2018
@avh4 avh4 added this to the 0.7.1 public beta milestone Feb 1, 2018
@avh4
Copy link
Owner

avh4 commented Feb 1, 2018

Thanks!

kutyel pushed a commit to kutyel/elm-format that referenced this pull request Apr 26, 2022
fold ElmFormat.Cli{,Test} into ElmFormat.Integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants