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
  • 4 weeks ago
  • 11 years ago

Installs

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