Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.1
Fetching contributors…

Cannot retrieve contributors at this time

79 lines (54 sloc) 2.916 kb

SublimErl (Erlang Tests)

Overview

SublimErl is a plugin for the text editor Sublime Text 2. It allows you to:

  • Run Eunit tests ( all tests from file / single test )
  • Run Common Tests ( single file )
  • Run Dialyzer tests ( single file )

All within your test editor.

Screenshot

Here's a screenshot of SublimErl running an Eunit specific test in file.

SublimErl screenshot

Installation

SublimErl currently supports only on OSX and Linux. There are 3 ways to install it.

1. Sublime Package Control

Download and install the Sublime Package Control. This package controller allows you to easily manage your Sublime Text 2 plugins (installs / removals / upgrades).

2. Git Clone

Go to your Sublime Text 2 Packages directory:

  • OS X: ~/Library/Application Support/Sublime Text\ 2/Packages
  • Linux: ~/.Sublime Text 2/Packages/

and clone the repository using the command below:

git clone https://github.com/ostinelli/SublimErl.git
3. File Download

Head to the downloads section and unzipping the downloaded file into the Sublime Text 2 Packages directory.

Usage

  • Run single Eunit test: position your cursor anywhere within your test function and hit Command-Shift-F8
  • Run all Eunit test in file: position your cursor outside any test function and hit Command-Shift-F8
  • Run all Common Tests in file: view the test file and hit Command-Shift-F8
  • Run Dialyzer on file: view the file and hit Command-Shift-F9
  • Re-Run the previous test: hit Command-F8 ( you do not need to be viewing the test to launch it )
  • View Common Tests results in browser: hit Command-Option-F8 (OSX) | Command-Alt-F8 (Linux/Win)

A brief introduction video can be seen here:

SublimErl screenshot

Dependencies

To use SublimErl, you need to have:

To unleash the full power of the plugin, you will also need to comply to:

TL;DR: it basically means to organize your project structure using:

-- myproject
   |-- ebin
   |-- src
       |-- myproject.app.src
   |-- test
Jump to Line
Something went wrong with that request. Please try again.