Contents

Logging

In order to debug asset processing As a developer I want to see some logs

Scenario: Logging to stdout

@io

  • Given these files exist
    input/bar.js
    input/baz.js
  • And the file ".assets.rb" contains
    ruby
    input  'input'
    output 'output'
    logger
    
    package :foo do
      assets '*.js'
      concat 'main.min.js'
    end
  • When the app is loaded
  • And the app has been processed
  • Then stdout should match
    text
    Package :foo
      Input ->
        /.+/input/bar.js
        /.+/input/baz.js
      Output ->
        /.+/output/main.min.js

Source: features/logging.feature at commit 97ce086f, Pannier (MIT license).