ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Gourmet

by gourmet ALL

This plugin aims to help CakePHP developers using the Gourmet suite of plugins.

Details

  • 2014.02.12.23.37.43
  • github.​com
  • github.​com
  • 10 years ago
  • 43 minutes ago
  • 10 years ago

Installs

  • Total 128
  • Win 76
  • Mac 31
  • Linux 21
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12
Windows 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
Mac 0 0 0 0 0 0 0 0 0 0 0 1 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
Linux 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Gourmet

This plugin aims to help CakePHP developers using the Gourmet suite of plugins.

Installation

Use Sublime Text 2's Package Control (Preferences -> Package Control -> Install Package -> Gourmet) to install this plugin.

Configuration

@todo Write up.

Commands

This plugin adds support for running tests (or any CakePHP shell command) from inside Sublime Text 2.

Right-click in the editor to:

  • Open the associated test file (i.e. Model/User.php -> Model/UserTest.php)
  • Run all tests in the current file
  • Run select method unit test - TODO
  • Run all unit tests - TODO

Right-click in the side-bar to:

  • Open the associated test file (i.e. Model/User.php -> Model/UserTest.php)
  • Run all tests in the current file

Go to the Tools menu (Tools -> Gourmet] to:

  • Open the associated test file (i.e. Model/User.php -> Model/UserTest.php)
  • Run all tests in the current file
  • Run select method unit test - TODO
  • Run all unit tests - TODO

You can also open up the Command Palette (CMD + SHIFT + P on OSX), and type 'Gourmet' to see what you can do with Gourmet in the currently open file.

Snippets

We add the following snippets to speed up writing PHP test code.

To use any of the snippets, simply type the name of the snippet, then press the key. Sublime Text 2 will insert the snippet, and you can then use the key to move through any placeholders that you need to replace.

  • gourmet-addTest: Stubs test method
  • gourmet-newCommonTestCase: Stubs class TestCase that extends Common.TestSuite/CommonTestCase
  • gourmet-addBeforeSave: Stubs the Model::beforeSave() method

Patches & Features

  • Fork
  • Mod, fix
  • Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
  • Pull request - bonus point for topic branches

Bugs & Feedback

http://github.com/gourmet/sublime/issues

License

Copyright 2014, Jad Bitar

Licensed under The MIT License Redistributions of files must retain the above copyright notice.