perl-Test-Class
SublimeText assistance for Perl's Test::Class
Details
Installs
- Total 875
- Win 517
- Mac 182
- Linux 176
| Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 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-Class
This package provides snippets for Perl's Test::Class for Sublime Text 2 and 3
Introduction
The package is currently offering the following snippets:
testclass
testmethod
testclass is a variation of the snippet from the builtin Perl package: package. It unfolds boilerplate code for a test class (Test::Class) holding the following body of code:
package Test::Class::ClassName;
use strict;
use warnings;
use base qw(Test::Class);
use Test::More;
#run prior and once per suite
sub startup : Test(startup) {
# body...
return 1;
}
#run after and once per suite
sub shutdown : Test(shutdown) {
# body...
return 1;
}
#run prior and once per test method
sub setup : Test(setup) {
# body...
return 1;
}
#run after and once per test method
sub teardown : Test(teardown) {
# body...
return 1;
}
1;
testmethod is a variation of the snippet from the builtin Perl package: sub. It unfolds a more specialized variation of a subroutine.
sub testmethod_name : Test(number_of_tests) {
my ($self) = @_;
# body...
return return_value;
}
This package can with luck be used with 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+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-Class 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-Class
The advantage of using either Package Control or git is, that the plugin will be automatically 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
Organizing your tests using Test::Class is really useful and since Test::Class can be used across projects/distributions this package can assist in speeding up your development.
History
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