All Projects → claco → Jasmine.vim

claco / Jasmine.vim

Jasmine Plugin for Vim

Labels

Projects that are alternatives of or similar to Jasmine.vim

Skybison
Vim plugin to expedite use of cmdline commands
Stars: ✭ 74 (-11.9%)
Mutual labels:  viml
Xoria256.vim
Finely tuned soft gamma, 256 colors, dark background, gvim == vim
Stars: ✭ 80 (-4.76%)
Mutual labels:  viml
Use vim as ide
use vim as IDE
Stars: ✭ 9,067 (+10694.05%)
Mutual labels:  viml
Cmake.vim
🔨 CMake functionality within Vim.
Stars: ✭ 76 (-9.52%)
Mutual labels:  viml
Rocannon
Vim for Ansible playbooks: omni-completion, abbreviations, syntax, folding, K-docs, and colorscheme
Stars: ✭ 80 (-4.76%)
Mutual labels:  viml
Vim Reload
Automatic reloading of Vim scripts ((file-type) plug-ins, auto-load/syntax/indent scripts, color schemes)
Stars: ✭ 80 (-4.76%)
Mutual labels:  viml
L9
Vim-script library
Stars: ✭ 73 (-13.1%)
Mutual labels:  viml
Languagetool
Grammar checker for English, French, German (etc.) in Vim
Stars: ✭ 83 (-1.19%)
Mutual labels:  viml
Vim Statline
Add useful informations to Vim statusline
Stars: ✭ 80 (-4.76%)
Mutual labels:  viml
Vim Symfony
A vim plugin to handle symfony and all that stuff
Stars: ✭ 82 (-2.38%)
Mutual labels:  viml
Conoline.vim
Highlights the line of the cursor only in the current window.
Stars: ✭ 79 (-5.95%)
Mutual labels:  viml
Vim Pomodoro
Vim plugin for the Pomodoro time management technique
Stars: ✭ 79 (-5.95%)
Mutual labels:  viml
Closetag.vim
Functions and mappings to close open HTML/XML tags
Stars: ✭ 81 (-3.57%)
Mutual labels:  viml
Intero.nvim
Haskell+Neovim lightning fast autocompletion and other IDE functionality
Stars: ✭ 76 (-9.52%)
Mutual labels:  viml
Vimrc
Meteor/Web development centric vim config
Stars: ✭ 83 (-1.19%)
Mutual labels:  viml
Vim Latex
Mirror of vim-latex as Sourceforge's git support blows chunks!
Stars: ✭ 73 (-13.1%)
Mutual labels:  viml
Vimtodo
Vim TODO manager
Stars: ✭ 80 (-4.76%)
Mutual labels:  viml
Jekyll.vim
Automate common Jekyll tasks from Vim
Stars: ✭ 83 (-1.19%)
Mutual labels:  viml
Learn Vim
无废话极简版Vim学习笔记!文章按主题分拆为多个章节,并尽量控制每节的信息量;通过文字色彩和字体,将命令、快捷键突出显示;在每节结尾,提供一个命令列表,以便回顾文中介绍的重要命令。如果这些文章能对喜欢Vim的朋友有所益处,我将不胜荣幸。
Stars: ✭ 83 (-1.19%)
Mutual labels:  viml
Incsearch Easymotion.vim
Stars: ✭ 82 (-2.38%)
Mutual labels:  viml

h1. Vim Plugin for Jasmine javascript testing

This is my first attempt at a vim plugin bundle. I'm sure there are dragons in here. :-)

h2. Installation

I'm currently using Pathogen and am assuming you are too. That means you should be able to do:

bc. git clone git://github.com/claco/jasmine.vim.git bundle/jasmine

inside of your ~/.vim directory. If you're using submodules to track your bundles:

bc. git submodule add git://github.com/claco/jasmine.vim.git bundle/jasmine git submodule init git submodule update

h2. What it does

This plugin is pretty basic right now. It currently:

  • Sets *Spec.js and *SpecHelper.js files to filetype=jasmine.javascript syntax=jasmine
  • Sets *Spec.coffee and *SpecHelper.coffee files to filetype=jasmine.coffee syntax=jasmine
  • Applies basic syntax highlighting for jasmine keywords in addition to normal javascript syntax
  • Loads snippets for the jasmine filetype for: ** desc: description block with before..it..expect ** before: beforeEach block ** after: afterEach block ** it: it...expect block ** helper: beforeEach block and addMatcher/matcher blocks for SpecHelper.js ** matcher: matcher block for SpecHelper.js ** expect: expect..to line ** spy: spyOn method
  • Uses templates for new jasmine buffers
  • Runs all specs in jasmine:ci and shows Red/Green bar

You can disable templating by setting g:jasmine_use_templates=""

By default, the plugin assumes the templates are in bundle/jasmine/template and the snippets are in bundle/jasmine/snippets. You can override those by setting g:jasmine_snippets_directory and g:jasmine_templates_directory in your vimrc

h2. Running Specs

I'm slowly working on interactive spec running support. Currently, the Jasmine() command is provided for jasmine buffers. When invoked, it searches the current/parent directories of that buffer for the nearest Rakefile and invokes rake jasmine:ci to run all specs. Jasmine buffers now have compiler set to the jasmine compiler and leader-m is mapped to run :Jasmine -> jasmine#run_tests -> :make -> rake jasmine:ci

If the specs fail, the bottom buffer status turns Red. If all specs pass, the status turns Green.

I plan on adding quickfix error support.

h2. TODO

  • Add commands/functions to run a spec, a spec file
  • Add QuickFix error buffer support
  • docs help file
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].