Project

crtu

0.0
No commit activity in last 3 years
No release in over 3 years
Useful Cucumber and ruby test utilities,like loggers, rake tasks, etc...
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0
~> 3.0

Runtime

> 2.3.0, ~> 2.3
>= 1.1.10, ~> 1.1
 Project Readme

Gem Version Build Status

Code Climate Test Coverage Issue Count

#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

Usage

Rake Tasks

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"

Loggers

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 stdout
  • file_logger logs to a file
  • all_logger logs to both console and file

Contributing

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.

License

The gem is available as open source under the terms of the MIT License.