Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonasbn/sublimetext-perl-test-more
SublimeText assistance for Perl's Test::More
https://github.com/jonasbn/sublimetext-perl-test-more
perl snippets st sublime-package sublime-snippets sublime-text sublime-text-3 sublime-text-plugin test
Last synced: about 2 months ago
JSON representation
SublimeText assistance for Perl's Test::More
- Host: GitHub
- URL: https://github.com/jonasbn/sublimetext-perl-test-more
- Owner: jonasbn
- License: artistic-2.0
- Created: 2014-02-19T19:03:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T19:18:57.000Z (about 1 year ago)
- Last Synced: 2023-12-22T20:52:55.320Z (about 1 year ago)
- Topics: perl, snippets, st, sublime-package, sublime-snippets, sublime-text, sublime-text-3, sublime-text-plugin, test
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
SublimeText-Perl-Test-More
==========================[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
This package provides snippets for Perl's [Test::More](https://metacpan.org/pod/Test::More) for [Sublime Text 2 and 3](http://www.sublimetext.com/)
- [Introduction and Usage](#introduction-and-usage)
- [Installation](#installation)
- [Issues](#issues)
- [Motivation](#motivation)
- [Acknowledgements](#acknowledgements)
- [History](#history)
- [License](#license)The package is currently offering the following snippets:
```perl
BAIL_OUT
can_ok
cmp_ok
diag
is
isa_ok
isnt
like
ok
unlike
is_deeply
done_testing
```You simply write the [Test::More](https://metacpan.org/pod/Test::More) routine you want and press the `tab` key
An example:
```perl
ok
```expands to:
```perl
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 suiteThis package can with compliments the [package](https://github.com/jonasbn/SublimeText-Perl-Test-Class) for Perl's [Test::Class](https://metacpan.org/pod/Test::Class) for **Sublime Text 2 and 3**.
For installation several options are available.
## Via [Package Control](https://packagecontrol.io/):- `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 packagesClone 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](https://packagecontrol.io/packages/perl-Test-More) for this plugin.
### Sublime Text 3
1. [Download](https://github.com/jonasbn/SublimeText-Perl-Test-More/archive/master.zip) 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](https://github.com/jonasbn/SublimeText-Perl-Test-More/archive/master.zip) 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)Please report any issues via [github](https://github.com/jonasbn/SublimeText-Perl-Test-More/issues).
I write a lot of test code across projects/distributions and since [Test::More](https://metacpan.org/pod/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_deeply` and `done_testing`, resulting in version 1.1.0
- `is_deeply` and `done_testing` added
- Initial version
The package is licensed under the Artistic License 2.0 and pull-requests are most welcome, please see [the contribution guidelines](CONTRIBUTING.md).
jonasbn, Copenhagen/Denmark