Coder Social home page Coder Social logo

vim-makegreen's Introduction

vim-MakeGreen

makegreen.vim is a vim (http://www.vim.org) plugin that runs make and shows the test run status with a red or green bar.

Installation

Copy all files to your ~/.vim directory or use Tim Pope's excellent pathogen plugin (http://github.com/tpope/vim-pathogen).

Usage

:MakeGreen % will run make for the current file and show its status with a red or green message bar.

example:

$ cd <your rails/merb root>
$ vim test/unit/user_test.rb

:compiler rubyunit
:MakeGreen %

See the full documentation for more.

vim-makegreen's People

Contributors

5long avatar bogdan avatar garybernhardt avatar jdiamond avatar olethanh avatar reinh avatar renanivo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vim-makegreen's Issues

The test runner reports success if there are exceptions thrown in the spec

For example:

describe 'rspec make plugin' do
  it 'should error on the following in a bare file' do
    Foo.new
  end
end

The above in a bare file should result in the tests failing, but vim-makegreen reports them as all running. If I change the assertion to something knowably false (like false.should be_true), only then do the tests report an error.

Mapping conflicts with command-T

Hi and thanks a lot for this plugin.
t conflicts with command-T default mapping (which would better be ct IMHO)... may I suggest mg as a replacement ?!

Bests

Do not modify shellpipe

As mentioned in the comments to this commit, it should not be makegreen's responsibility to set the user's shellpipe. makegreen should respect the user's setting.

Make arguments should be configurable

Right now, the plugin always does "make %". This breaks in some situations (e.g., a Rails controller isn't even requireable on its own because ApplicationController won't be defined). My compiler runs all tests all the time anyway, so this breakage is doubly annoying for me.

In general, I don't like that the plugin always runs ":make %". I'd like to see the default be :make with no args, combined with a way to run on custom args if the user wants to map something for that.

Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.