Coder Social home page Coder Social logo

svilenkov / testchooser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from craigwilliams/testchooser

0.0 2.0 0.0 114 KB

Sublime Text 2 Plugin for easily running RSpec and Cucumber tests in iTerm

License: Other

JavaScript 26.93% Python 73.07%

testchooser's Introduction

#TestChooser A Sublime Text 2 plugin for quickly executing a RSpec & Cucumber commands in iTerm or Apple's Terminal.

Description

It first checks the current file to see that it is either a "feature" or "spec" file. If so, it reads the file looking for "it", "describe", "context" or "scenario" keywords that are at the beginning of a line.

It then displays those lines for you to choose from. Once you select an item from the list and click "Run", the test is executed in iTerm or Apple's Terminal, whichever you have set in preferences. The default is iTerm.

Instructions

This Plugin

Install this plugin using Package Control, a package manager for Sublime Text 2.

Key Bindings

There is a menu item to access the key binding for TestChooser.

"Preferences"->"Package Settings"->"TestChooser"->"Key Bindings - User"

This one uses a two-key combination. The "super" is the "command" key on a Mac.

{ "keys": ["super+y", "super+y"], "command": "test_chooser" }

Settings

"Preferences"->"Package Settings"->"TestChooser"->"Settings - User"

Choose your terminal. The default is iTerm but you can also choose Apple's Terminal by using the word "Terminal"

"terminal": "iTerm"

The search terms used when searching the RSpec and Cucumber files.

"search_terms": ["it", "describe", "context", "Scenario"]

Set the RSpec terminal command.

"rspec_command": "bundle exec rspec --drb"

Set the Cucumber terminal command.

"cucumber_command": "bundle exec cucumber --drb -r features/"

License

Read the license text file included in this package... but it's MIT.

Changelog

Changed the original plugin to now use Package Conrol

Removed py-appscript dependency.

testchooser's People

Contributors

craigwilliams avatar tnypxl avatar altonymous avatar dvydra avatar

Watchers

Igor avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.