Skip to content

hadashiA/testkick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 

Repository files navigation

testkick.el

testkick.el is Emacs Lisp provides a command. Find the test code associated with the current buffer, and run it.

Supported test frameworks.

  • Ruby
    • RSpec
  • node.js
    • vows
    • mocha

Usage

Run your test code associated of current buffer.

M-x testkick

Run your test root directory of current project.

M-x testkick-root

Find file test-file/source-file toggle.

M-x testkick-toggle

Installation

  1. Copy testkick.el file to your load-path.
  2. Add this one line to your init.el
(require 'testkick)

Additional

;; Settings for your shorthand.
(global-set-key (kbd "C-`") 'testkick)
(global-set-key (kbd "C-+") 'testkick-toggle)

;; Coloring on the results of shell command. Handle escape sequences correctly
(autoload 'ansi-color-apply-on-region "ansi-color"
  "Set `ansi-color-apply-on-region' to t." t)
(add-hook 'compilation-filter-hook
          '(lambda ()
             (ansi-color-apply-on-region (point-min) (point-max))))

TODO

  • More settings.
  • Test case filter and run (rspec --line, vows -r, etc..)
  • anything interface

About

Emacs Lisp command that find the test code and run it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published