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
  • 56 minutes ago
  • 11 years ago

Installs

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