perl-Test-More
SublimeText assistance for Perl's Test::More
Details
Installs
- Total 943
- Win 411
- Mac 244
- Linux 288
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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
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
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');
- 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.
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
- Select
Tools->Command Palette
from the menu - Select
Package Control: Install Package
- Select perl-Test-More from the list of available packages
- Select
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
- 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)
Sublime Text 2
- 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)
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
anddone_testing
, resulting in version 1.1.0
History
2015-11-27 1.1.0
is_deeply
anddone_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