Before and during the refactoring (#11) and the development of more features, it is useful to beef up the testing, which was also part of the motivation for (#26).
Since we have recently visited the "test-suite", I just took the opportunity to go ahead and impement #8, which will ease adding more tests, both technically and also by reducing our own mental barriers... :-)
The WHAT:
Implement #8, resulting in a split of tests between:
t/01-basic.t : anything "basic" that doesn't involve optspec();
In this part, we are mostly trying to make sure that GLM has basic sane behavior which is identical with GL, fulfilling the doc's promise of being a "drop-in replacement".
t/02-optspec.t : This second part is anything that involves optspec(), while still not drawing on GLM's own fatures;
This exercise also gave birth to a little test helper modulet/lib/TestHelperGLM.pm which will be providing the common stuff needed by the test suite (which currently includes the test_getoptions() routine).
The FUTURE:
Later on, we can add some other tests for ensuring that GLM is functioning correctly with regard to its own advertised features, such as:
t/xx-opt-version.t
t/xx-opt-helptext.t # hold on to this one until the functionaly matures a little
t/xx-completion.t # idem. How do you test completion anyways?
SYNOPSIS:
Reorganize test suite as described in gh [#08]
The WHY:
Before and during the refactoring (#11) and the development of more features, it is useful to beef up the testing, which was also part of the motivation for (#26).
Since we have recently visited the "test-suite", I just took the opportunity to go ahead and impement #8, which will ease adding more tests, both technically and also by reducing our own mental barriers... :-)
The WHAT:
Implement #8, resulting in a split of tests between:
t/01-basic.t
: anything "basic" that doesn't involve optspec();In this part, we are mostly trying to make sure that GLM has basic sane behavior which is identical with GL, fulfilling the doc's promise of being a "drop-in replacement".
t/02-optspec.t
: This second part is anything that involves optspec(), while still not drawing on GLM's own fatures;This exercise also gave birth to a little test helper module
t/lib/TestHelperGLM.pm
which will be providing the common stuff needed by the test suite (which currently includes thetest_getoptions()
routine).The FUTURE:
Later on, we can add some other tests for ensuring that GLM is functioning correctly with regard to its own advertised features, such as:
t/xx-opt-version.t
t/xx-opt-helptext.t
# hold on to this one until the functionaly matures a littlet/xx-completion.t
# idem. How do you test completion anyways?