NAME
Test::BDD::Infrastructure::Logfile - cucumber step definitions for watching log files
VERSION
version 1.005
Synopsis
Scenario: The client ip must be logged in access log
Given the log file /var/log/apache2/access.log is watched
...
Then the log file must contain the message ^123.123.123.123 - -
Step definitions
Given the log file <file> is (searched|watched)
If the Given statment is used with 'searched' then the whole file will be searched for the pattern. If used with 'watched' then it will only search lines after the current EOF position.
Then the log file must (not contain|contain) the message <regex>
AUTHOR
Markus Benning <ich@markusbenning.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by Markus Benning.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.