- SublimeCodeIntel Plugin
- Distraction Free Mode
- Sublime Text – Batch Processing
- Debugging Javascript Application
- Debugging PHP Application
- Sublime Text – Command Palette
- Sublime Text – Developing Plugin
- Sublime Text – Sub Menus of Font
- Sublime Text – Menus
- Sublime Text – Packages
- Sublime Text – Spell Check
- Sublime Text – Testing Python Code
- Sublime Text – Testing Javascript
- Sublime Text – Vintage Commands
- Understanding Vintage Mode
- Sublime Text – Theme Management
- Sublime Text – Base Settings
- Sublime Text – Indentation
- Sublime Text – Column Selection
- Sublime Text – Key Bindings
- Sublime Text – Macros
- Sublime Text – Snippets
- Sublime Text – Shortcuts
- Sublime Text – Sublime Linter
- Patterns of Code Editing
- Editing First Text Document
- Creating First Document
- Sublime Text – Data Directory
- Sublime Text – Installation
- Sublime Text – Introduction
- Sublime Text - Home
Sublime Text Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Subpme Text - Testing Python Code
Python offers unittest, an official unit testing framework for unit testing the scripts designed before deployment. It is also called as PyUnit. Python unit tests used in Subpme Text editor are called as subpme-unittests and they are available in the following pnk −
These unit tests contain a number of useful snippets to ease the writing of unit test cases.
Installation of UnitTest
The package control of Subpme manages the installation of unittests and the following steps describe it in detail −
Step 1 − Use the command palette of Subpme Editor Ctrl+Shift+P for installation of the package, as shown in the screenshots given below −
Step 2 − The installed packages use the following two main snippets −
testclass which is used to create a new test class
testfunc which is used to create a new test function for us to fill out
Step 3 − The console computes test results as shown in the screenshot below. Note that the result depends on the success or failure of the test.
Success Result
Failure Result
Note − Unit test cases work as a compiler for computing scripts in python.
Advertisements