SublimeText plugin for BDD that retrieves a Story from Pivotaltracker and inserts it to the current document as a jasmine spec.
-
Can select project from list after set the Pivotaltracker Id (
Ctrl+Shift+P
Story to Jasmine: Select project from list
) -
After select the project now can you use "search operator" to select stories (
Ctrl+Shift+P
Story to Jasmine: Search story
). It use the same sintax that Pivotaltracker site.Pivotaltracker sintax
The shorter way of doing this is (Not yet):
Through Sublime Package Manager
Ctrl+Shift+P
or ⌘+Shift+P
in Linux/Windows/OS X- type
install
, selectPackage Control: Install Package
- type and select
StorytoJasmine
Make sure you use the right Sublime Text folder. For example, on OS X, packages for version 2 are in ~/Library/Application\ Support/Sublime\ Text\ 2
, while version 3 is labeled ~/Library/Application\ Support/Sublime\ Text\ 3
.
These are for Sublime Text 3:
git clone https://github.com/gallegogt/StoryToJasmine.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/StoryToJasmine
git clone https://github.com/gallegogt/StoryToJasmine.git ~/.config/sublime-text-3/Packages/StoryToJasmine
git clone https://github.com/gallegogt/StoryToJasmine.git "%APPDATA%/Sublime Text 3/Packages/StoryToJasmine"
Tools -> Command Palette (Ctrl+Shift+P
or ⌘+Shift+P) and type
Story to Jasmine`.
-- or --
Right click in the current buffer and select Story to Jasmine
-> one of next options:
Pivotaltracker Story sample
- Set Pivotaltracker Api Token (Api Token for access to the service)
2.- Set Project Id
Project id on pivotaltracker site
3.- Get Story ID (This options is only for javascript files)
Story id on pivotaltracker site
Set this story id on ST plugin
The result of last option is:
Jasmine Code
Tools -> Story to Jasmine -> Set Plugin Options
{
// default current project
"current_project": "",
// default PivotalTracker Api Token
"pivotaltracker_api_token": "",
// story keywords (change the keywords values for other languages)
"word_Given": "Dado ",
"word_And": "Y ",
"word_When": "Cuando ",
"word_Then": "Entonces ",
// jasmine simple template
"describe_template": "describe('{0}', function() {{{1}}});",
"it_template": "it('{0} [ID:#{1}]', function() {2});\n\n"
}
This package works on Windows, OSX, and Linux