Skip to content

Instantly share code, notes, and snippets.

@jakemauer
Last active August 29, 2015 14:00
Show Gist options
  • Save jakemauer/11389057 to your computer and use it in GitHub Desktop.
Save jakemauer/11389057 to your computer and use it in GitHub Desktop.
ST3 RubyText + Zeus Setup
[
{ "keys": ["super+shift+r"], "command": "run_single_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // single test
{ "keys": ["super+shift+t"], "command": "run_all_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // test file
{ "keys": ["super+shift+e"], "command": "run_last_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // test last test file
{ "keys": ["super+shift+x"], "command": "show_test_panel" }, // show test panel
{ "keys": ["alt+shift+v"], "command": "verify_ruby_file",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby"
} ]
}, // verify ruby syntax
{ "keys": ["super+period"],
"command": "switch_between_code_and_test",
"args": {"split_view": false},
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // switch between code and test in single mode
{ "keys": ["super+ctrl+period"],
"command": "switch_between_code_and_test",
"args": {"split_view": true},
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // switch between code and test in split view
{ "keys": ["super+shift+c"], "command": "generate_file" } // create new file
]
{
"erb_verify_command": "erb -xT - {file_name} | ruby -c",
"ruby_verify_command": "ruby -c {file_name}",
"run_ruby_unit_command": "ruby -Itest {relative_path}",
"run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'",
// "run_cucumber_command": "cucumber {relative_path}",
// "run_single_cucumber_command": "cucumber {relative_path} -l{line_number}",
// "run_rspec_command": "rspec {relative_path}",
// "run_single_rspec_command": "rspec {relative_path} -l{line_number}",
"run_cucumber_command": "zeus cucumber {relative_path} --no-color",
"run_single_cucumber_command": "zeus cucumber {relative_path}:{line_number} --no-color",
"run_rspec_command": "zeus rspec {relative_path}",
"run_single_rspec_command": "zeus rspec {relative_path}:{line_number}",
"check_for_rvm": true,
"ruby_unit_folder": "test",
"ruby_cucumber_folder": "features",
"ruby_rspec_folder": "spec",
"ruby_use_scratch" : false,
"save_on_run": false,
"ignored_directories": [".git", "vendor", "tmp"],
"hide_panel": false,
"before_callback": "",
"after_callback": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment