Behave Step Finder
Helps to navigate to steps in behave (http://pythonhosted.org/behave/)
Details
Installs
- Total 2K
- Win 613
- Mac 557
- Linux 372
Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text 2/3 plugin: Behave Step Finder
Easily navigate to behave step definitions.
Based on CucumberStepFinder (https://github.com/danielfrey/sublime-cucumber-step-finder)
It provides by now two commands:
- One listing all steps in the open project and letting you choose a step using the built-in mechanism for search.
- The second one letting you jump to the corresponding step by calling the “MatchStep”-Command when standing on a step in the features file
Installation
Package Control
Installation through package control is recommended. It will handle updating your packages as they become available. To install, do the following.
- In the Command Palette, enter
Package Control: Install Package
- Search for
behaveStepFinder
Mac OSX (manual)
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/s1ider/sublime-behave-step-finder.git behaveStepFinder
Linux/Windows
Not tested yet. Contributions are welcome. If keyboard settings are provided, it should work.
Usage
The default key-binding for “search” is super + y
, respectively
ctrl + super + m
for “match”.
Change it if one is already used in your configuration
Configuration
The following settings are available so far.
{
"behave_features_path" : "features",
"behave_step_pattern" : ".*_steps.*\\.py",
"behave_code_keywords" : ["given", "when", "then", "and", "but"]
}
The plugin looks for behave_features_path
as a direct subdirectory of your project. Override this setting if your steps are located in a different subdirectory.
In the given features directory it uses the second setting for finding step-files recursively matching the behave_step_pattern
For finding the matching step, behaveStepFinder needs to know which are the behave-keywords. Since there are different keywords beside English, you can configure them in behave_code_keywords
.