We’ve inherited an application that uses a script to import data from a text file, but doesn’t test the import script.
I’d like to write some tests for that script, and will need test text files (these are not fixture files).
Where would you normally put those files? A data directory? In the new support directory?
You should decouple your import from the file IO. Then you should be able to feed in test strings into your importer with out having to make ‘test files’.