vendredi 20 octobre 2017

Cucumber step definition empty test suite

I have a step definition set up for my cucumber. It will find it but wont go inside it to execute it. I have no idea why. I stepped through the debugger for cucumber and it seemed okay for as much as I could tell.

It says the test suit is empty.

Feature: dropping files

  Scenario : dropping a file

  Given I make file
     |amount            |bankAba             |bus_fun_code                 |bene_account              |
     |900000010106      |051405515           |CTR                          |3620782881                |

Here is the step definition.

Given(/^I make a file$/) do |table|
  # table is a table.hashes.keys # => [:amount, :bankAba, :bus_fun_code, :bene_account]
  puts "ABCD"
end

It wont put ABCD. Just says empty test suite

Aucun commentaire:

Enregistrer un commentaire