Git Product home page Git Product logo

selfie_formatter's Introduction

The RSpec Selfie Formatter

An RSpec Formatter for the new generation of programmers.

Selfie Formatter Animation

The Selfie Formatter takes photos of you while your tests run and uses them to track progress and format the results.

Currently only works on OS X with iTerm2 >= 3.0. Warning see known issues.

Installation

ImageMagick is required

brew install imagemagick --with-fontconfig

Then

gem install selfie_formatter

Or, in your Gemfile

gem "selfie_formatter", :group => "test"

Usage

rspec -f SelfieFormatter

Known Issues

  1. Slower tests. Yes, vanity has its price: the camera takes time to warm up, and a small sleep time is added prior to taking the each photo. At some point the sleep time may be added as an option.

  2. Photos are taken via imagesnap, which is a fine program but can quickly eat up memory. Upwards of 500 MB after 10 or 15 seconds.

  3. Photos are taken every 300ms. Unused photos are cleaned up after every test completes but if a single test takes a while to complete photos can start to eat up disk space.

At some point I may write something that does not fake the Camera interface via fork. imagesnap and CaptureCamera are good starting points.

License

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

selfie_formatter's People

Contributors

sshaw avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.