Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add path and line the step defined at to stepdefs.json

  • Loading branch information...
commit e94e76d05febec5500ecf4cf6e8548eb130b61dc 1 parent fd86ac0
@moro authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/cucumber/runtime.rb
View
1  lib/cucumber/runtime.rb
@@ -143,6 +143,7 @@ def write_stepdefs_json
end
end
end
+ stepdef_hash['file_colon_line'] = stepdef.file_colon_line
stepdef_hash['steps'] = steps.uniq.sort {|a,b| a['name'] <=> b['name']}
stepdefs << stepdef_hash
end

1 comment on commit e94e76d

@aslakhellesoy

That's a great idea! If I understand correctly, this allows various editors to "Go to source" of a step definition while looking at a step? Is that the idea?

Please sign in to comment.
Something went wrong with that request. Please try again.