Where should I store and verify files manipulated by an app
Posted
by
Alan W. Smith
on Programmers
See other posts from Programmers
or by Alan W. Smith
Published on 2014-03-31T23:56:56Z
Indexed on
2014/06/08
9:40 UTC
Read the original article
Hit count: 255
testing
I'm working on a little Ruby script to move screenshots while renaming them based on a specific convention. I'll be writing tests to confirm the behavior.
Ruby has lots of conventions for where to store files (e.g. the "spec" and "features" directories for RSpec and Cucumber, respectively), but I'm not finding best practices for storing files that will be acted upon by the tests. The same goes for a destination for the final copies of the files.
So, the question in two parts is:
- Where should I store files that the test cases will use for a source input.
- Where should tests that need to write output files send them to.
© Programmers or respective owner