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
  • 11 years ago
  • 1 hour ago
  • 11 years ago

Installs

  • Total 138
  • Win 81
  • Mac 35
  • Linux 22
Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7
Windows 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 1 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 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
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 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.