{"id":18910011,"url":"https://github.com/jonasbn/sublimetext-perl-test-class","last_synced_at":"2026-03-07T13:30:18.928Z","repository":{"id":14287106,"uuid":"16995285","full_name":"jonasbn/SublimeText-Perl-Test-Class","owner":"jonasbn","description":"SublimeText assistance for Perl's Test::Class","archived":false,"fork":false,"pushed_at":"2023-12-22T19:18:10.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T05:27:21.597Z","etag":null,"topics":["perl","snippets","st","sublime-package","sublime-snippets","sublime-text","sublime-text-2","sublime-text-3","sublime-text-plugin","test"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonasbn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-02-19T19:07:40.000Z","updated_at":"2023-12-22T19:18:11.000Z","dependencies_parsed_at":"2023-12-15T16:24:18.581Z","dependency_job_id":"d8e80a1d-af96-4519-abe1-bb641ab27c69","html_url":"https://github.com/jonasbn/SublimeText-Perl-Test-Class","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2FSublimeText-Perl-Test-Class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2FSublimeText-Perl-Test-Class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2FSublimeText-Perl-Test-Class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2FSublimeText-Perl-Test-Class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonasbn","download_url":"https://codeload.github.com/jonasbn/SublimeText-Perl-Test-Class/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239898462,"owners_count":19715212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["perl","snippets","st","sublime-package","sublime-snippets","sublime-text","sublime-text-2","sublime-text-3","sublime-text-plugin","test"],"created_at":"2024-11-08T09:38:57.256Z","updated_at":"2026-03-07T13:30:18.846Z","avatar_url":"https://github.com/jonasbn.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"SublimeText-Perl-Test-Class\n===========================\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nThis package provides snippets for Perl's [Test::Class](https://metacpan.org/pod/Test::Class) for [Sublime Text 2 and 3](http://www.sublimetext.com/)\n\n\u003c!-- MarkdownTOC depth=1 --\u003e\n\n- [Introduction](#introduction)\n- [Installation](#installation)\n- [Issues](#issues)\n- [Motivation](#motivation)\n- [History](#history)\n- [License](#license)\n\n\u003c!-- /MarkdownTOC --\u003e\n\n\u003ca name=\"introduction\"\u003e\u003c/a\u003e\n# Introduction\n\nThe package is currently offering the following snippets:\n\n```perl\ntestclass\ntestmethod\n```\n\n`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:\n\n```perl\npackage Test::Class::ClassName;\n\nuse strict;\nuse warnings;\nuse base qw(Test::Class);\nuse Test::More;\n\n#run prior and once per suite\nsub startup : Test(startup) {\n    # body...\n\n    return 1;\n}\n\n#run after and once per suite\nsub shutdown : Test(shutdown) {\n    # body...\n\n    return 1;\n}\n\n#run prior and once per test method\nsub setup : Test(setup) {\n    # body...\n\n    return 1;\n}\n\n#run after and once per test method\nsub teardown : Test(teardown) {\n    # body...\n\n    return 1;\n}\n\n1;\n```\n\n`testmethod` is a variation of the snippet from the builtin Perl package: `sub`. It unfolds a more specialized variation of a subroutine.\n\n```perl\nsub testmethod_name : Test(number_of_tests) {\n    my ($self) = @_;\n    # body...\n\n    return return_value;\n}\n```\n\nThis package can with luck be used with the [package](https://github.com/jonasbn/SublimeText-Perl-Test-More) for Perl's [Test::Class](https://metacpan.org/pod/Test::Class) for **Sublime Text 2 and 3**.\n\n\u003ca name=\"installation\"\u003e\u003c/a\u003e\n# Installation\n\nFor installation several options are available.\n\n\u003ca name=\"via-package-control\"\u003e\u003c/a\u003e\n## Via [Package Control](https://packagecontrol.io/):\n\n- `Control`+`Shift`+`P` on Linux/Windows,\n- `Command`+`Shift`+`P` on OS X,\n- or for any OS\n  1. Select `Tools-\u003eCommand Palette` from the menu\n  2. Select `Package Control: Install Package`\n  3. Select **perl-Test-Class** from the list of available packages\n\n\u003ca name=\"git\"\u003e\u003c/a\u003e\n## Git:\n\nClone the repository in your Sublime Text Packages directory.\n\n`$ git clone https://github.com/jonasbn/perl-Sublime-Test-Class`\n\nThe advantage of using either Package Control or git is, that the plugin will be automatically updated.\n\nSee also the [Package Control page](https://packagecontrol.io/packages/perl-Test-Class) for this plugin. \n\n\u003ca name=\"from-zip\"\u003e\u003c/a\u003e\n## From ZIP\n\n### Sublime Text 3\n\n1. [Download](https://github.com/jonasbn/SublimeText-Perl-Test-Class/archive/master.zip) the zip file\n2. Unpack it in your Sublime Text directory, as per OS and Sublime Text \n  - OS X    ~/Library/Application Support/Sublime Text 3/Packages/\n  - Linux   ~/.config/sublime-text-3/Packages/\n  - Windows %APPDATA%\\Sublime Text 3\\Packages\\\n3. Start using it! (see section above)\n\n### Sublime Text 2\n\n1. [Download](https://github.com/jonasbn/SublimeText-Perl-Test-Class/archive/master.zip) the zip file\n2. Unpack it in your Sublime Text directory, as per OS and Sublime Text \n  - OS X    ~/Library/Application Support/Sublime Text 2/Packages/\n  - Linux   ~/.config/sublime-text-2/Packages/\n  - Windows %APPDATA%\\Sublime Text 2\\Packages\\\n3. Start using it! (see section above)\n\n\u003ca name=\"issues\"\u003e\u003c/a\u003e\n# Issues\n\nPlease report any issues via [github](https://github.com/jonasbn/SublimeText-Perl-Test-Class/issues).\n\n\u003ca name=\"motivation\"\u003e\u003c/a\u003e\n# Motivation\n\nOrganizing your tests using Test::Class is really useful and since [Test::Class](https://metacpan.org/pod/Test::Class) can be used across projects/distributions this package can assist in speeding up your development. \n\n\u003ca name=\"history\"\u003e\u003c/a\u003e\n# History\n\n\u003ca name=\"2015-08-15-100\"\u003e\u003c/a\u003e\n## 2015-08-15 1.0.0\n\n- Initial version\n\n\u003ca name=\"license\"\u003e\u003c/a\u003e\n# License\n\nThe package is licensed under the Artistic License 2.0 and pull-requests are most welcome, please see [the contribution guidelines](CONTRIBUTING.md).\n\njonasbn, Copenhagen/Denmark\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasbn%2Fsublimetext-perl-test-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonasbn%2Fsublimetext-perl-test-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasbn%2Fsublimetext-perl-test-class/lists"}