JuliaTesting / ReferenceTests.jl

Utility package for comparing data against reference files
https://juliatesting.github.io/ReferenceTests.jl/latest/
Other
82 stars 14 forks source link

If file does not exist, create it (No Prompt) #52

Closed oxinabox closed 4 years ago

oxinabox commented 4 years ago

This removes the prompt before creating reference files.

I have wanted this for a while, because when creating dozens (or hundreds) of reference files, I don't want to sit there hammering "yes". This also means if I need to regenerate everything, I can delete my reference folder and rerun my tests.

I tend to do almost all my review of reference files during code-review rather than in the terminal.

I think this is a better behavour, but In theory someone could be relying on this to make sure that files were not created by mistake, e.g. by looking at the filename, not just the content.

So I bumped this as a breaking change, just incase. Its not really an API change, as much as a UI change. Maybe I should only do a nonbreaking verion bump?

coveralls commented 4 years ago

Coverage Status

Coverage increased (+4.2%) to 89.516% when pulling 6791818a446f9c3594d851add0afc398d4ac0130 on ox/noprompttocreate into ffbfb2918daf15b77d97b0251366769b93cabdf7 on master.