#CRTU
Cucumber Ruby Test Utilities
Some assorted test utilities for those who do cucumber testing with ruby.
For now it has:
Some rake tasks
Singleton logger utilitie defined with log4r
To use the rake tasks insert the following lines on your Rakefile:
spec = Gem::Specification.find_by_name('crtu')
load "#{spec.gem_dir}/lib/tasks/cucumber_tasks.rake"
Add the Utils module to the world, then you can call
if in a class add include Utils::LocalLogger
then you can call
console_logger.<level> "MESSAGE TO LOG"
file_logger.<level> "MESSAGE TO LOG"
all_logger.<level> "MESSAGE TO LOG"
console_logger
logs message only to stdoutfile_logger
logs to a fileall_logger
logs to both console and file
Bug reports and pull requests are welcome on GitHub at https://github.com/Th33x1l3/crtu. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Aside from that feel free to send pull requests with useful code that you want to share.
The gem is available as open source under the terms of the MIT License.