Closed jouvin closed 7 years ago
retest this please
@jouvin jenkins test fails
# Failed test 'File /some/where/files/target3 already exists and option 'force' not specified'
# at /data/jenkins/workspace/maven-tools-pr-builder/build-scripts/src/main/perl/Test/Quattor.pm line 645.
@jouvin wrt failing test, if you want to check that a unittest failure is triggered by the ok(0, ...)
code, you need to mock ok
itself. see eg https://github.com/quattor/maven-tools/blob/master/build-scripts/src/test/perl/quattor.t#L41 you can mock it before the test or method call; and unmock it again after.
I'll check! It was working for me as far as I remember...
big thanks!
Requires https://github.com/quattor/CAF/pull/225 to pass the tests successfully.
Probably some additional unit tests would be useful but main features of link-related functions are covered.
Fixes #141