undercover 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +9 -3
- data/lib/undercover/version.rb +1 -1
- data/undercover.gemspec +4 -1
- metadata +19 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 | 
            -
             | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 2 | 
            +
            SHA1:
         | 
| 3 | 
            +
              metadata.gz: f2c8fd3763c8494ad7be8661f9d0d1e6fb7dfda9
         | 
| 4 | 
            +
              data.tar.gz: 19a2961fa7f865971a82c8c80f2f2d8b51510e9b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: eb1b3f61949ee3cce0d14bf3efe502902b0ee2bc0915ec2c9af20f475ec6d8ded1f016011bba616e469503c1dd9fc5fddf20eeae9ac1e30f6b81089721941238
         | 
| 7 | 
            +
              data.tar.gz: ec7b3f43d7e76298fc3dd6b4fa38a9f3a4863ff74b599756f68432045b78173af5805cb76e354920c8882998829dd0457057ceb685709adae068f79254c0afad
         | 
    
        data/README.md
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            # undercover 👮♂️
         | 
| 2 2 |  | 
| 3 | 
            -
            **RuboCop for code coverage**
         | 
| 3 | 
            +
            **Like RuboCop but for code coverage**
         | 
| 4 4 |  | 
| 5 5 | 
             
            **Inspects files in a git diff and warns on methods, classes and blocks which need test coverage.** Use it locally or as part of an automated build to shorten your code coverage feedback loop!
         | 
| 6 6 |  | 
| @@ -13,6 +13,8 @@ The goal was to provide automated warnings, that are: | |
| 13 13 | 
             
            - timely, so we don't end up writing tests long after the implementation
         | 
| 14 14 | 
             
            - actionable, so we can fix them before the code is committed or reaches production
         | 
| 15 15 |  | 
| 16 | 
            +
            For more background, please [read the blog post](https://medium.com/futuredev/stop-shipping-untested-ruby-code-with-undercover-1edc963be4a6).
         | 
| 17 | 
            +
             | 
| 16 18 | 
             
            ## How?
         | 
| 17 19 |  | 
| 18 20 | 
             
            Technically, `undercover` combines data from git, coverage reports and code structure graphs.
         | 
| @@ -49,7 +51,7 @@ Or install it yourself as: | |
| 49 51 |  | 
| 50 52 | 
             
            ## Setting up required LCOV reporting
         | 
| 51 53 |  | 
| 52 | 
            -
            To make your specs compatible with `undercover` by providing an LCOV report, please add `simplecov` and `simplecov-lcov` to your test setup. | 
| 54 | 
            +
            To make your specs or tests compatible with `undercover` by providing an LCOV report, please add `simplecov` and `simplecov-lcov` to your test setup.
         | 
| 53 55 |  | 
| 54 56 | 
             
            ```ruby
         | 
| 55 57 | 
             
            # Gemfile
         | 
| @@ -64,7 +66,9 @@ require 'simplecov-lcov' | |
| 64 66 | 
             
            SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
         | 
| 65 67 | 
             
            SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
         | 
| 66 68 | 
             
            SimpleCov.start do
         | 
| 67 | 
            -
              add_filter(/^\/spec\//)
         | 
| 69 | 
            +
              add_filter(/^\/spec\//) # For RSpec
         | 
| 70 | 
            +
              
         | 
| 71 | 
            +
              add_filter(/^\/test\//) # For Minitest
         | 
| 68 72 | 
             
            end
         | 
| 69 73 |  | 
| 70 74 | 
             
            require 'undercover'
         | 
| @@ -72,6 +76,8 @@ require 'undercover' | |
| 72 76 | 
             
            # ...
         | 
| 73 77 | 
             
            ```
         | 
| 74 78 |  | 
| 79 | 
            +
            Then run your test suite once through to generate the initial `coverage/lcov/*.lcov` file before you can run the `undercover` command
         | 
| 80 | 
            +
             | 
| 75 81 | 
             
            ## Usage
         | 
| 76 82 |  | 
| 77 83 | 
             
            ### Compare method and class coverage with latest commit
         | 
    
        data/lib/undercover/version.rb
    CHANGED
    
    
    
        data/undercover.gemspec
    CHANGED
    
    | @@ -4,6 +4,7 @@ lib = File.expand_path('lib', __dir__) | |
| 4 4 | 
             
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         | 
| 5 5 | 
             
            require 'undercover/version'
         | 
| 6 6 |  | 
| 7 | 
            +
            # rubocop:disable Metrics/BlockLength
         | 
| 7 8 | 
             
            Gem::Specification.new do |spec|
         | 
| 8 9 | 
             
              spec.name          = 'undercover'
         | 
| 9 10 | 
             
              spec.version       = Undercover::VERSION
         | 
| @@ -22,7 +23,7 @@ Gem::Specification.new do |spec| | |
| 22 23 | 
             
              spec.executables   = spec.files.grep(/^bin\//) { |f| File.basename(f) }
         | 
| 23 24 | 
             
              spec.require_paths = ['lib']
         | 
| 24 25 |  | 
| 25 | 
            -
              spec.add_dependency 'imagen', '~> 0.1. | 
| 26 | 
            +
              spec.add_dependency 'imagen', '~> 0.1.4'
         | 
| 26 27 | 
             
              spec.add_dependency 'rainbow', '~> 2.1'
         | 
| 27 28 | 
             
              spec.add_dependency 'rugged', '~> 0.27.0'
         | 
| 28 29 |  | 
| @@ -32,6 +33,8 @@ Gem::Specification.new do |spec| | |
| 32 33 | 
             
              spec.add_development_dependency 'rspec', '~> 3.0'
         | 
| 33 34 | 
             
              spec.add_development_dependency 'rubocop', '~> 0.55.0'
         | 
| 34 35 | 
             
              spec.add_development_dependency 'simplecov'
         | 
| 36 | 
            +
              spec.add_development_dependency 'simplecov-html'
         | 
| 35 37 | 
             
              spec.add_development_dependency 'simplecov-lcov'
         | 
| 36 38 | 
             
              spec.add_development_dependency 'timecop'
         | 
| 37 39 | 
             
            end
         | 
| 40 | 
            +
            # rubocop:enable Metrics/BlockLength
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: undercover
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.7
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jan Grodowski
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2018- | 
| 11 | 
            +
            date: 2018-08-03 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: imagen
         | 
| @@ -16,14 +16,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - "~>"
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 0.1. | 
| 19 | 
            +
                    version: 0.1.4
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 24 | 
             
                - - "~>"
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: 0.1. | 
| 26 | 
            +
                    version: 0.1.4
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: rainbow
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -136,6 +136,20 @@ dependencies: | |
| 136 136 | 
             
                - - ">="
         | 
| 137 137 | 
             
                  - !ruby/object:Gem::Version
         | 
| 138 138 | 
             
                    version: '0'
         | 
| 139 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 140 | 
            +
              name: simplecov-html
         | 
| 141 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 142 | 
            +
                requirements:
         | 
| 143 | 
            +
                - - ">="
         | 
| 144 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 145 | 
            +
                    version: '0'
         | 
| 146 | 
            +
              type: :development
         | 
| 147 | 
            +
              prerelease: false
         | 
| 148 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 149 | 
            +
                requirements:
         | 
| 150 | 
            +
                - - ">="
         | 
| 151 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 152 | 
            +
                    version: '0'
         | 
| 139 153 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 140 154 | 
             
              name: simplecov-lcov
         | 
| 141 155 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -213,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 213 227 | 
             
                  version: '0'
         | 
| 214 228 | 
             
            requirements: []
         | 
| 215 229 | 
             
            rubyforge_project: 
         | 
| 216 | 
            -
            rubygems_version: 2. | 
| 230 | 
            +
            rubygems_version: 2.6.14.1
         | 
| 217 231 | 
             
            signing_key: 
         | 
| 218 232 | 
             
            specification_version: 4
         | 
| 219 233 | 
             
            summary: Actionable code coverage - detects untested code blocks in recent changes
         |