Build Status Coverage Status Code Climate Gem Version Dependency Status

Continuus Lenimentus

A SimpleCov Formatter for Continuus Lenimentus Local CI. When the spec suite is run a file is generated with metrics and the state of the test suite.


Add this line to your application's Gemfile:

group :test do
  gem 'rspec', '~> 2.14.1'
  gem 'simplecov', '~> 0.7.1', require: false
  gem 'continuus_lenimentus', '~> 0.0.4', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install continuus_lenimentus


Within your applications .simplecov file add SimpleCov::Formatter::ContinuusLenimentusFormatter as a formatter.

require 'continuus_lenimentus'

SimpleCov.configure do
  start('rails') do
    formatter SimpleCov::Formatter::MultiFormatter[

And within your spec_helper.rb file add a configuration block if required.

Note: The RSpec ContinuusLenimentusRspecFormatter formatter currently only supports the default progress format.

require "simplecov"
require 'continuus_lenimentus'

RSpec.configure do |config|
  config.formatter = ContinuusLenimentusRspecFormatter

ContinuusLenimentus.configure do |config|
  config.encrypted = true
  config.key       = 'MQofYpgCMZ79shxTtgYiQFEuvPdw'
  config.file      = 'ci.enc' = Dir.getwd
  condig.message   = "CI generated."

Each time you run your spec suite a file will be generated, in this case /ci.enc.

Generated File

Regardless of encryption the file generated will contain the following data.

  created_at: 2013-11-07 20:49:16 +0000, 
  duration: 0.003154, 
  counts: {
    example: 28, 
    failure: 2, 
    pending: 1
  metrics: {
    total_lines: 521, 
    coverage: {
      percent: 100.0, 
      strength: 1.1428571428571428, 
      lines: 521


Type (AES - 256)

The generated file is encrypted by default to ensure minimal conflicts when using version control. Be sure to set your private key within the configuration block if your wish to use encryption.

There may be a case where you wish to append or alter the generated file before encrypting the content. In this case, be sure to set encrypted in the configuration block to false.

require "simplecov"
require 'continuus_lenimentus''OnTheBeach').encrypt
# => "EnjUhJkaI..."


Type (AES - 256)

The encrypted file is useless to you unless you can decrypt it.

require "simplecov"
require 'continuus_lenimentus'
# => { created_at: 2013-11-07 20:49:16 +0000... }


  • encrypted indicates whether the generated file should be encrypted. true
  • key is used when encrypting the generated file. wdPvuEFQiYgtTxhs97ZMCgpYfoQM
  • file is the name of the generated file. continuus_lenimentus.enc
  • directory is the directory where the generated file will be saved. /coverage
  • message is the output displayed on the screen each time the tests are run Continuous Integration report generated.


  • ruby > 1.9.x
  • rspec-core > 2.0.x
  • simplecov > 0.7.x
  • gibberish > 1.3.x

Contributing Maintained Status

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request