Code Monkey home page Code Monkey logo

Comments (2)

chris-rock avatar chris-rock commented on August 15, 2024

Thanks @cheesesashimi for adding this. I close that issue. Please re-open if this kitchen-inspec is not doing what you need.

from kitchen-inspec.

conorsch avatar conorsch commented on August 15, 2024

Thanks @cheesesashimi! Is there a way to make the error output more concise? Specifically, I'd like to silence the traceback from a failure and display only the failure message.

For example, I'd like to see only this:

  2) gem package riemann-tools should be installed
     Failure/Error: versions = params[2].split(',')

Instead of this montrosity:


  2) gem package riemann-tools should be installed
     Failure/Error: versions = params[2].split(',')

     NoMethodError:
       undefined method `[]' for nil:NilClass
     # /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/resources/gem.rb:31:in `info'
     # /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/resources/gem.rb:38:in `installed?'
     # /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/matchers/matchers.rb:97:in `block (2 levels) in <top (required)>'
     # ./test/integration/default/riemann_dash_spec.rb:10:in `block (2 levels) in load'
     # /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/inspec/runner.rb:117:in `run_with'
     # /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/inspec/runner.rb:113:in `run'
     # /home/conor/.gem/ruby/2.1.0/gems/kitchen-inspec-0.10.1/lib/kitchen/verifier/inspec.rb:43:in `call'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:398:in `block in verify_action'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:488:in `call'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:488:in `synchronize_or_call'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:453:in `block in action'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:452:in `action'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:394:in `verify_action'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:341:in `block in transition_to'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:340:in `each'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:340:in `transition_to'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:160:in `verify'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/command.rb:176:in `public_send'
     # /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/command.rb:176:in `block (2 levels) in run_action

The verbose format obscures the error report with unnecessary info about inspec's internals.

from kitchen-inspec.

Related Issues (20)

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.