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

perl-Test-More

by jonasbn ALL

SublimeText assistance for Perl's Test::More

Details

Installs

  • Total 949
  • Win 414
  • Mac 246
  • Linux 289
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 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
Windows 0 1 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
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

SublimeText-Perl-Test-More

License

This package provides snippets for Perl's Test::More for Sublime Text 2 and 3

Introduction and Usage

The package is currently offering the following snippets:

BAIL_OUT
can_ok
cmp_ok
diag
is
isa_ok
isnt
like
ok
unlike
is_deeply
done_testing

You simply write the Test::More routine you want and press the tab key

An example:

ok<tab>

expands to:

ok($got eq $expected, 'test_name');
  1. tabbing once again lets you write the assertion
  2. tabbing yet again lets you label the test
  3. And then you can run your test suite

This package can with compliments the package for Perl's Test::Class for Sublime Text 2 and 3.

Installation

For installation several options are available.

Via Package Control:

  • Control+Shift+P on Linux/Windows,
  • Command+Shift+P on OS X,
  • or for any OS
    1. Select Tools->Command Palette from the menu
    2. Select Package Control: Install Package
    3. Select perl-Test-More from the list of available packages

Git:

Clone the repository in your Sublime Text Packages directory.

$ git clone https://github.com/jonasbn/perl-Sublime-Test-More

The advantage of using either Package Control or git is, that the plugin will be automatically be updated.

See also the Package Control page for this plugin.

From ZIP

Sublime Text 3

  1. Download the zip file
  2. Unpack it in your Sublime Text directory, as per OS and Sublime Text
    • OS X ~/Library/Application Support/Sublime Text 3/Packages/
    • Linux ~/.config/sublime-text-3/Packages/
    • Windows %APPDATA%\Sublime Text 3\Packages\
  3. Start using it! (see section above)

Sublime Text 2

  1. Download the zip file
  2. Unpack it in your Sublime Text directory, as per OS and Sublime Text
    • OS X ~/Library/Application Support/Sublime Text 2/Packages/
    • Linux ~/.config/sublime-text-2/Packages/
    • Windows %APPDATA%\Sublime Text 2\Packages\
  3. Start using it! (see section above)

Issues

Please report any issues via github.

Motivation

I write a lot of test code across projects/distributions and since Test::More is put to such wide use it is nice to be able to write tests fast and consistenly.

Acknowledgements

  • Daniel Salgado Población contributed is_deeply and done_testing, resulting in version 1.1.0

History

2015-11-27 1.1.0

  • is_deeply and done_testing added

2015-08-15 1.0.0

  • Initial version

License

The package is licensed under the Artistic License 2.0 and pull-requests are most welcome, please see the contribution guidelines.

jonasbn, Copenhagen/Denmark