<commit_before># Simplecov::TeamcitySummary

By default, Teamcity [does not pick up coverage information for Simplecov reports](http://confluence.jetbrains.com/display/TCD8/Code+Coverage). This gem provides you with a quick and easy way to add these statistics to your Teamcity instance.

Per build:

![See your coverage results in TeamCity](https://raw.github.com/benc/simplecov-teamcity-summary/master/img/coverage_results.png)

Overall coverage statistics:

![Get overall coverage statistics](https://raw.github.com/benc/simplecov-teamcity-summary/master/img/coverage_chart.png)

With these statistics, you can trigger a build fail if coverage drops below a certain value:

![Trigger build failure](https://raw.github.com/benc/simplecov-teamcity-summary/master/img/trigger_build_failure.png)

## Installation

Add this line to your application's Gemfile:

    gem 'simplecov-teamcity-summary'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install simplecov-teamcity-summary

## Configuration

### When starting Simplecov

```ruby
  require 'simplecov'
  SimpleCov.start do<commit_msg>We need at least v0.8<commit_after># Simplecov::TeamcitySummary

By default, Teamcity [does not pick up coverage information for Simplecov reports](http://confluence.jetbrains.com/display/TCD8/Code+Coverage). This gem provides you with a quick and easy way to add these statistics to your Teamcity instance.

Per build:

![See your coverage results in TeamCity](https://raw.github.com/benc/simplecov-teamcity-summary/master/img/coverage_results.png)

Overall coverage statistics:

![Get overall coverage statistics](https://raw.github.com/benc/simplecov-teamcity-summary/master/img/coverage_chart.png)

With these statistics, you can trigger a build fail if coverage drops below a certain value:

![Trigger build failure](https://raw.github.com/benc/simplecov-teamcity-summary/master/img/trigger_build_failure.png)

## Installation

* Make sure you're depending on SimpleCov v0.8 or greater.
* Add this line to your application's Gemfile:

        gem 'simplecov-teamcity-summary'
        
  And then execute:

        $ bundle

* Or install it yourself as:

        $ gem install simplecov-teamcity-summary

## Configuration

### When starting Simplecov

```ruby
  require 'simplecov'
  SimpleCov.start do
{'fraction_non_alphanumeric': 0.09357481673134972, 'fraction_numerical': 0.00258732212160414, 'mean_word_length': 4.658536585365853, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '694148', 'n_tokens_mistral': 675, 'n_tokens_neox': 653, 'n_words': 206}