A Sublime Text extension to move between source and test files easily.
- Total 65
- Win 16
- Mac 26
- Linux 23
|Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6||Feb 5||Feb 4||Feb 3||Feb 2||Feb 1||Jan 31||Jan 30||Jan 29||Jan 28||Jan 27||Jan 26||Jan 25||Jan 24||Jan 23||Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12|
Test Switcher for Sublime Text
© 2017 David Reed, distributed under the MIT License.
This plugin provides a configurable way to swap between source files and corresponding test classes in Sublime Text 3. Invoke it while viewing a source file to tab to the corresponding test file, or vice versa, by choosing Test Switcher from the command palette or pressing Control-Shift-Insert (Linux and Windows) or Command-Shift-\ (Mac). Test Switcher scans open tabs first for matching files and then walks the directory tree for your open folders.
The plugin can be configured to find tests using many different naming conventions. It matches on basename (file name minus extension) as well as on extension. To configure basename matching, in the plugin's settings, supply a list for
suffixes. These will be added to the source file base name to locate possible test class files, and will be matched against the head and tail of open files to locate the source files corresponding to tests. The default configuration looks for prefixes
["test", "test_"] and suffixes
["test", "_test", ".spec"]. Hence, a source file named
Base.py would match to a test file named
Base.spec.py, and vice versa. Note that matching is case-insensitive on all platforms.
You may also, if you choose, supply
source_extensions. If present, only test and source files who match according to the defined name rubric and possess an extension in the relevant list will be offered as an option. If the lists are blank or empty, extensions are ignored.