Giter VIP home page Giter VIP logo

vim-vroom's Introduction

                                        .......%..*‘‘‘‘‘^^^>>>........
                            ___    <%**    ;                          ¨¨¨   \
                           /                                                  \  _
                        / .                                                        &;._
                      %                                                                 \
                    %                      ´                                                  >
                  %;                                    ~                               )       ‘
                 %                                                                                 \
                $                                                                                    \
              %                                                                                       \
            /   ¥                                                                                      »
          %                                 _.…---------.…_                                             |
         %                             ,./❛°               ❜`\.…                                         &
       %$                             ⋰                         \                                         \
      |@                            /                             \                                       /
      /                           /                                \                                     |
    /                            /           ☁☁☁☁     ☁☁☁☁          \.     *                             $
   :                            /           ,.---,___,---.,          |                                   #$
   &»                           |          ⌠|  ●  ]|[  ●  |}          |                       •           %#
   »                            |         ⎲|\.__.// \\.__./#?         |                                   $
   \.                           \          $      *¯*      #         /                                   @
    &                            \_        &   ,═══.═══,   %        /                                &  ] 
    ,                              \        ##&  \▥▥▥/  #@%       _/                             \     ?
    |                               \_        hg,… : _…%$        /                                     ;
     ;                              & \        &#;.#.:?%        >                                      :
      \                                 <         °*°       _>¨°                                      .!
       '     (                            \;..__________..;/                                           ?
         ;                                                                                             /
            .                                                                                         %
             \ °                                                                                     #
               \                                               ,                                    ⌠
                 \                                           ╭─╮                                   ;
                   \                                         ╰                                 …
                     \                                             <                        #%
                       *>  @                                                             ……#  
                             ,.                                                  ___ -–-
                                  \  –_......                                  >
                                             #>-.…__________             ..╱
                                                               \o/ ---

vim-vroom's People

Contributors

84a3580426e34a70a6a31fa4500b136c avatar aaronjensen avatar alexcp avatar brodock avatar bryansum avatar camthompson avatar charlietanksley avatar ericboehs avatar gentilfp avatar j1wilmot avatar kalbasit avatar katzien avatar matthijsgroen avatar nilbus avatar oscardelben avatar p0deje avatar pablox-cl avatar prognostikos avatar raskchanky avatar skalnik avatar skyeagle avatar smcabrera avatar stephencelis avatar stevenharman avatar styx avatar therod avatar whiny-nil avatar yesmeck 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  avatar  avatar  avatar  avatar  avatar

vim-vroom's Issues

Odd characters in vim window when using vroom for rspec

Here's an example of what I see in the command window after a spec runs using vroom:

�[32m  I see a message when choosing a low pro hopper�[0m

Finished in 9.52 seconds (files took 0.36624 seconds to load)
�[32m1 example, 0 failures�[0m 

I've looked through the docs, but don't see anything that applies here. How can I get vroom to preserve the same characters I'd see if I ran the spec in my terminal? I'm on Mac OS. I've tried two different fonts w/ Vim just to be sure, but see the same results.

rbenv and Cucumber don't work together properly

At least for me this morning when I run vroom#RunTestFile() within a cucumber feature I get this error message:

/bin/bash: ./b/./script/cucumber: No such file or directory

I use b as my binstubs directory. This should be calling either ./b/cucumber or, more likely, ./script/cucumber. I'll fix this at some point before too long, but I wanted to register it here.

Run nearest test blows up in non-test file

One of the most awesome features of vroom is running the most recent test, even when you aren't in that file. But that doesn't work when you run the most recent nearest test (that is, vroom#RunNearestTest() run from a non-test file).

Here's what happens. Let's say you ran vroom#RunNearestTest() from spec/some_spec.rb:10. Then you navigate to lib/some.rb and put your cursor on line 15. When you run vroom#RunNearestTest() you will run the spec nearest to line 15 (you'll run rspec spec/some_spec:15).

The problem is that the definition of s:RunNearestTest in autoload/vroom.vim (https://github.com/skalnik/vim-vroom/blob/master/autoload/vroom.vim#L113-118) we set the line number from the current file without checking to see if that is a test file.

I think we can fix it by borrowing from the s:RunTestFile method above it and wrap the code in a conditional. There is probably an elegant way to do this. But I'm unable to write it up right now (in large part because I don't have a setup to test it). I could probably get to it next week, but I make no promises. Either way, I'm registering it here for future reference. 😃

Screen is not cleared on :VroomRunLastTest

Is there a specific reason, why :VroomRunTestFile respects the g:vroom_clear_screen setting, while :VroomRunLastTest does not?

My expectation as a user would be, that both respect the setting.

If there's no specific reason and you agree, that both commands should respect the setting and clear the screen before running, then I'd commit a PR.

And: Thanks for this very useful and well working (for me) software. It saved me a lot of time and hackery and frustration. Thank you!

Ruby version issue?

When trying to run vroom - it doesn't seem to take into account my .ruby-version file, instead trying to use system ruby.

"--no-color" switch missing for zeus rspec command

When I run r on a project, without zeus running, it does append the --no-color to the command (bundle exec rpsec --no-color..), so the output isn't messed up with ansi color codes.

But that switch is missing when zeus is running (and because I have "--color" in .rspec) the output is cumbersome to read.

Thanks, great plugin

CheckForSpecHelper is never called

I think the function CheckForSpecHelper was added but never actually called, making vroom_detect_spec_helper option completely useless.

--servername option

Hey,
Thanks for the add-on, I really like it.

I have small questions, I started to move slowly to NeoVim and I encounter strange warning when I run tests with vim-vroom and vim dispatch inside tmux session. I'm receiving this:

Unknown option argument: "--servername"

However everything seems to be working fine as tests are executed properly. Is this flag needed for this plugin?

Integrate with vimux

Hi,

I would like to modify vim-room to optionally integrate with vimux. Basically, when I'm using tmux I want to run tests from vim but have them displayed in the tmux pane below. Vimux makes that easy, but vim-room is a superior testing framework and I want to continue using it. Is it ok for you if I fork and add this functionality?

Clean up isUsing<test runner> options

There are too many g:isUsingX options for things like zeus and spring (and others?). I worry about having too many options to configure. Could we have a g:testPreloader variable that stores a string, and then a s:setPreloader function that does an necessary checks and then inserts the proper command? Would that simplify things?

Use binstubs only if they exist

Thoughts on a value for g:vroom_use_binstubs (maybe 2?) that uses binstubs if the appropriate one exists, but if not, falls back to default behavior?

If you agree, I could try to hack something together :)

Color causes error with minitest

/Users/alindeman/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:49:in `process_args': invalid option: --color (OptionParser::InvalidOption)

Disabling color causes it to whine about --no-color

Add function to integrate spork?

I try to write as many tests as possible that don't use Rails. But sometimes you want integration tests that do use Rails. In those cases I like to call my tests manually (no Guard, for example), but use Spork to speed up the TDD loop. Now that I'm hooked on Vroom I'm not loving having to switch over to a new terminal tab to run rspec spec/integration/whatever_spec.rb --drb. I think it would be nice to have a function I could write a mapping for that basically does what vroom#RunTestFile() and vroom#RunNearestTest() do but appends the --drb flag. I can do this (well, it will require some refactoring, so I should say I can write a version of this that you might want to revise :)).

Is this something you'd support/be interested in, or is it outside of the scope of vroom (or maybe even the wrong place to call this option)?

Add suport for turnip

Since turnip features also use the .feature extension, vroom tries running them with cucumber. The convention for cucumber is to put features in ./features while turnip features go in ./spec/features. This convention should be sufficient to distinguish between test runners here.

Issues replacing test unit command

I'm trying to use "rake test TEST=" as the test unit command. I added:

let g:vroom_test_unit_command = "rake test TEST="

But now I get:

/Users/bhilkert/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/rake_test_loader.rb:15:in `require': cannot load such file -- /Users/bhilkert/Dropbox/code/perform (LoadError)
    from /Users/bhilkert/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/rake_test_loader.rb:15:in `block in <main>'
    from /Users/bhilkert/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/rake_test_loader.rb:4:in `select'
    from /Users/bhilkert/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [ruby -I"lib:test" -I"/Users/bhilkert/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib" "/Users/bhilkert/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/rake_test_loader.rb" "" ]

Tasks: TOP => minitest:single
(See full trace by running task with --trace)

It seems to still be running the ruby test unit runner. Am i missing something?

Detect for spec_helper

To speed things further, could this plugin look for spec_helper in the spec file then make a decision on whether to run inside bundler or not?

I am thinking of http://cl.ly/FkGu for inspiration.

<leader>R - Test::Unit does not support line number syntax

I'm using Test::Unit + shoulda and when I hit R within a single test, I'm getting this error:

:!bundle exec ruby -Itest test/unit/revenue_change_test.rb:9
ruby: No such file or directory -- test/unit/revenue_change_test.rb:9 (LoadError)

I believe in Test::Unit you need to give it the method name or a regex to match it.

Configuration option exists to disable `bundle exec`, even if a Gemfile exists

For isolated Rails tests, it's sometimes nice to run without bundle exec. If using rvm gemsets or similar, bundle exec is not necessary and adds unnecessary startup time.

It would be nice if vim-vroom allowed a configuration option to disable using bundle exec in all cases.

Totally just a nice to have, of course! Thanks for your work on this.

Vroom 2.0

Just a WIP todo list of stuff that'd be handy to have before we can 🚢 a 2.0

  • Some tests
  • Overhauled options parser
  • A few more sane defaults?

/cc @alindeman @charlietanksley

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.