Galdor has asked for the wisdom of the Perl Monks concerning the following question:
Dear esteamed Monks of Perl - I am writing a script/suite/module to recurse and test the various files/folders found on a network filesystem that need to have certain naming conventions, folder structures, relative paths to each other, and contents in certain files (similar to Perls' Manifest, Changes, ...) - in fact quite similar to Perl Modules structures..(actually this is to test the quality of a PROD and DEVEL ITIL DML)
I have been persuaded to use TDD (Test Driven Development) and would like to start with this project.
My question is this: I am pursuing test driven development - so can I have a test (mock) "share" (Windows UNC in this case) that I can "load" with samples of both correct and incorrect standards to run the tests against (with ok(); is(); isnt();, etc)?
Also this would go into the modules distribution (as the test suite) so it would have to be as small as possible (the real DML is enormous with massive files, *.iso, *.cab, *.7z, *.zip, etc).
PS - Another (advanced) point is that I am developing my code on laptop - so how can I "switch" test suite (prove command) to run against a) network share when in office, and b) "mock" share when traveling/at home? Also to switch between production and test DMLs
PPS - If there are any modules that already do this kind of thing (testing directory structure integrity) please give a shout out :-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mock/Fake network fileshare for my new modules Test Suite
by afoken (Chancellor) on Aug 27, 2014 at 19:43 UTC | |
Re: Mock/Fake network fileshare for my new modules Test Suite
by Anonymous Monk on Aug 27, 2014 at 07:14 UTC | |
by Anonymous Monk on Aug 27, 2014 at 12:01 UTC | |
by DrHyde (Prior) on Aug 28, 2014 at 15:38 UTC |