Code Monkey home page Code Monkey logo

what_to_run's People

Contributors

dyegocosta avatar gitter-badger avatar jstotz avatar tenderlove 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

Watchers

 avatar  avatar  avatar  avatar  avatar

what_to_run's Issues

Add smoke test

Currently the test suite lack of smoke tests. We need at least one smoke test for each supported framework.

Currently I'm envisioning two simple projects as git submodules, a shell script to copy those project to a safe dir, run its test suite, modify a file and run what_to_run and a rspec wrapper to assert its output.

Any input of how to write those tests are very welcome.

Argument list too long error

$ vagrant@local:/vagrant/core$ what_to_run rspec
$ /var/lib/gems/2.1.0/gems/what_to_run-1.0.0/lib/what_to_run/runner.rb:17:in `exec': Argument list too long - bundle exec rspec -e <RSpec extensive spec list> (Errno::E2BIG)
    from /var/lib/gems/2.1.0/gems/what_to_run-1.0.0/lib/what_to_run/runner.rb:17:in `run'
    from /var/lib/gems/2.1.0/gems/what_to_run-1.0.0/lib/what_to_run/cli.rb:15:in `run'
    from /var/lib/gems/2.1.0/gems/what_to_run-1.0.0/bin/what_to_run:5:in `<top (required)>'
    from /usr/local/bin/what_to_run:23:in `load'
    from /usr/local/bin/what_to_run:23:in `<main>'

Predict test to run when uncovered lines are modified

We need to embrace the false positive cases in order not miss tests that depends on lines evaluated on require time

Run all tests that uses this file when the not indicated lines are modified (yes, almost every line)

class Omg
  include Foo::Bar

  method_evaluated_on_require :foo

  def yey
    hey = 'hey' # => don't run "all" test when this line is modified
    puts hey    # => don't run "all" test when this line is modified
  end
end

Apparently there is no way to scape from this ๐Ÿ˜ญ

Stop using /tmp

Create a .what_to_run directory in the project directory or use the project under test tmp

Compatibility with simplecov/coveralls

This project uses Coveralls to track code coverage. Coveralls uses simplecov and what_to_run seems to conflict with it. Running bundle exec rspec with require 'what_to_run/rspec' in the spec helper results in the following exception from simplecov:

/Users/jstotz/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/simplecov-0.9.2/lib/simplecov.rb:44:in `result': coverage measurement is not enabled (RuntimeError)
    from /Users/jstotz/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/simplecov-0.9.2/lib/simplecov.rb:44:in `result'
    from /Users/jstotz/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/simplecov-0.9.2/lib/simplecov/configuration.rb:158:in `block in at_exit'
    from /Users/jstotz/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/simplecov-0.9.2/lib/simplecov/defaults.rb:54:in `call'
    from /Users/jstotz/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/simplecov-0.9.2/lib/simplecov/defaults.rb:54:in `block in <top (required)>'

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.