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

FailureDiffs directory along side the ReferenceImages #68

Open
hugobast opened this issue Nov 24, 2016 · 11 comments
Open

FailureDiffs directory along side the ReferenceImages #68

hugobast opened this issue Nov 24, 2016 · 11 comments

Comments

@hugobast
Copy link

Currently the FailureDiffs isn't configured but it could easily be configured with the defaults suggested here.

If it's worth anything to you guys let me know and I'll try to make it happen. I use the env var and it works fine but I had to do a lot of digging to finally see what the difference is between this folder that we aren't getting by default and the other one which we are.

@ashfurrow
Copy link
Owner

Neat, didn't know about that! I don't see any reason we shouldn't include this feature, would love to review a PR together 👍

@marcelofabri
Copy link
Collaborator

just to be clear, you mean a directory in the same level as ReferenceImages, not inside it, right? Something like this:

- Tests
   - ReferenceImages
   - FailureDiffs

@diogot
Copy link
Collaborator

diogot commented Nov 27, 2016

Would be awesome if it is in the same directory, but with failed appended to file name.

@marcelofabri
Copy link
Collaborator

@diogot I disagree as it'd be easy to mistakenly commit them

@diogot
Copy link
Collaborator

diogot commented Nov 27, 2016

I didn't thought about this, I agree with you.

@orta
Copy link
Collaborator

orta commented Nov 28, 2016

Aye, I'm with both of you, don't think we should set this to be something that could end up in git

@hugobast
Copy link
Author

@marcelofabri yes absolutely on the same level as ReferenceImages. I'll open a PR. Thanks guys!

@orta
Copy link
Collaborator

orta commented Nov 29, 2016

@hugobast to my knowledge, the last three comments were saying that this shouldn't be added ( at least mine was ) as it is more likely to be annoying to people than the other way around.

If it is, then it should be off by default at least - the diff files are temporary data, whereas the reference images should be in the repo

@marcelofabri
Copy link
Collaborator

My comment was that it's a nice feature, but the tree should be something like this:

- Tests
   - ReferenceImages
   - FailureDiffs

And NOT this:

- Tests
   - ReferenceImages
       - spec.png
       - spec_failed.png

@hugobast
Copy link
Author

Right that's the version I plan on implementing:

- Tests
   - ReferenceImages
   - FailureDiffs

I'm gonna tackle it this coming Friday.

@hugobast
Copy link
Author

Maybe a README entry will be enough to educate that Tests/FailureDiffs should be added to .gitignore?

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

No branches or pull requests

5 participants