ElixirTest
Directly run `mix test` on single files/tests from within Sublime Text!
Details
Installs
- Total 2K
- Win 2K
- Mac 550
- Linux 398
Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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
Sublime Text Elixir Tests
DISCLAIMER
I shamelessly copied the excellent Sublime Plugin (RubyTest)[https://github.com/maltize/sublime-text-2-ruby-tests] and just modified it so it would run mix
instead of rspec
and detect Elixir files instead of Ruby ones. So all credit goes to these guys:
* Maciej Gajek (https://github.com/maltize)
* Grzegorz Smajdor (https://github.com/gs)
* Tejas Dinkar (https://github.com/gja)
CONTRIBUTORS
Thanks go out to: * Matt (https://github.com/molenick) * CJ Bryan (https://github.com/waltz)
for bugfixing and tweaking this thing :)
Overview
Running:
- Elixir tests (all tests with mix: from file / single test)
Installation
Go to your Sublime Text Packages
directory
- OS X:
~/Library/Application\ Support/Sublime\ Text\ 2/Packages
- Windows:
%APPDATA%/Sublime Text 2/Packages/
- Linux:
~/.config/sublime-text-2/Packages/
and clone the repository using the command below:
git clone https://github.com/tarzan/sublime-text-elixir-tests.git ElixirTest
Settings
'Sublime Text' -> 'Preferences' -> 'Package Settings' -> 'ElixirTest'
Make a copy of ElixirTest.sublime-settings
file to ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/
and make your changes.
Usage
- Run single elixir test:
Ctrl-Command-Shift-R
- Run all elixir tests from current file:
Ctrl-Command-Shift-T
- Run last elixir test(s):
Ctrl-Command-Shift-E
- Show test panel:
Command-Shift-X
(when test panel visible hitesc
to hide it) - Switching between code and test (create a file if not found):
- Single View:
Command-.
- Split View:
Command-Ctrl-.
Keys: 'Command' (OSX) 'Ctrl' (Linux / Windows)
- Single View:
Settings:
{
"run_mix_command": "mix {relative_path}",
"run_single_mix_command": "mix {relative_path}:{line_number}",
"mix_test_folder": "test",
"check_for_mix": false,
"save_on_run": false,
"ignored_directories": [".git", "vendor", "tmp"],
"hide_panel": false,
"before_callback": "",
"after_callback": "",
"theme": "Packages/ElixirTest/TestConsole-belafonte-night.tmTheme",
"syntax": "Packages/ElixirTest/TestConsole.tmLanguage",
"terminal_encoding": "utf-8"
}