P is for Practical | |
PerlMonks |
Re^3: Writing tests when you don't know what the output should beby afoken (Chancellor) |
on May 17, 2016 at 21:08 UTC ( [id://1163267]=note: print w/replies, xml ) | Need Help?? |
Regarding the files, I don't know what the files will be named ahead of time so how do I test if the module is loading the correct ones? If I create dummy files to run tests on, it will interfere with the proper operation of the actual module. Then your module lacks a parameter telling it WHERE to look for the files. During the tests, you want to look for test input files usually below the "t" directory, not where the production files are. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|