You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
When Cucumber prints the scenario, it ideally needs a location for each step so it can print them to the user.
Example (imagined):
Scenario:
Given the range is 1000m # features/step_definition/steps.tcl:2
And Samantha is 1000m from Bob # features/step_definition/steps.tcl:5
TODO (Tcl::Error)
features/hear_shout.feature:8:in `And Samantha is 1000m from Bob'
When Bob sends a message "hello" # features/step_definition/steps.tcl:10
Then Samantha should hear "hello" # features/step_definition/steps.tcl:15
The text was updated successfully, but these errors were encountered:
# an attempt at saving the source of the step definition# 3 in [info frame..] is a magic number that only works in this constellation of [source]s# haven't come up with a more robust way yetset location "[file tail [uplevel 3 {info script}]]:[dict get [info frame 3] line]"lappend STEPS [list$re$params$body$location]
this works now in cucumber-tcl-wire and could be probably directly transfered into this repo. The magic numbers are now somewhat less magic and are robust against framelevel differences when sourcing the steps.
BTW, what is the workflow for developing this lib? rake → code → rake?
When Cucumber prints the scenario, it ideally needs a location for each step so it can print them to the user.
Example (imagined):
The text was updated successfully, but these errors were encountered: