cheezy / pretty_face

HTML Report for Cucumber
MIT License
27 stars 32 forks source link

Undefined method 'table=' for for #<Cucumber::Ast::Step:0x3e45a30> - Scenario Outline with data table #19

Open AlanLGuy opened 10 years ago

AlanLGuy commented 10 years ago

using: pretty_face 0.9.1 cucumber 1.3.10

For the following feature file I am getting an error message:

 undefined method `table=' for #<Cucumber::Ast::Step:0x3e45a30> (NoMethodError)

Example Feature:

Scenario Outline: Pretty Face records results for failed scenario outlines
    Given I have a scenario outline with a data table
     |  <username>  |  <password>  |
    When I execute my feature file
    Then the table is included in the HTML report

  Examples:
    |   username    |   password  |

The backtrace points to this method.

  def after_step(step)
        step = process_step(step) unless step_belongs_to_outline? step
        if @cells
          step.table = @cells
          @cells = nil
        end
      end

The method calls step.table =, but because this step belongs to an outline, the table= method was not created in process_step.

sahithya commented 10 years ago

Hi Alan,

Thanks for pointing out this issue. We are looking into this. Although, this doesn't fix the issue you pointed out, there is a new version of pretty_face available.

Sahithya

pahlawat commented 10 years ago

Hi I am getting the same error with the latest version of pretty_face gem when running the cucumber tests

undefined method `table=' for #Cucumber::Ast::Step:0x007fc9be0e9cc0 (NoMethodError)

Can you please help me with this issue?

Priya

frankGracias commented 9 years ago

Hi Sahithya,

I still see the error with v 0.1. Is there a work-around?

Greeff commented 9 years ago

Hi @sahithya

I too am still facing this problem with your gem. To clarify it is only when putting a table as part of a step, rather than the Examples: table

If you guys are not fixing it anymore could you please point me in the direction of your work so far?

Cheers