This package provides snippets for Perl's Test::More for Sublime Text 2 and 3
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_testingYou 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');- tabbing once again lets you write the assertion
- tabbing yet again lets you label the test
- 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.
For installation several options are available.
Via Package Control:
Control+Shift+Pon Linux/Windows,Command+Shift+Pon OS X,- or for any OS
- Select
Tools->Command Palettefrom the menu - Select
Package Control: Install Package - Select perl-Test-More from the list of available packages
- Select
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.
- Download the zip file
- 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\
- Start using it! (see section above)
- Download the zip file
- 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\
- Start using it! (see section above)
Please report any issues via github.
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.
- Daniel Salgado Población contributed
is_deeplyanddone_testing, resulting in version 1.1.0
is_deeplyanddone_testingadded
- Initial version
The package is licensed under the Artistic License 2.0 and pull-requests are most welcome, please see the contribution guidelines.
jonasbn, Copenhagen/Denmark