Giter Club home page Giter Club logo

crtu's Introduction

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.

crtu's People

Contributors

th33x1l3 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.