Code Monkey home page Code Monkey logo

autotest-rails's People

Contributors

zenspider 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

Watchers

 avatar  avatar  avatar  avatar  avatar

autotest-rails's Issues

Apparent Regression in Latest Release

I upgraded to the latest version of autotest-rails yesterday, and when I ran autotest it failed out immediately saying the variable 'm' is undefined.

This appears to be a regression in the following commit:

ab39bd5

In line 59, the variable m seems to be out of scope, as opposed to other do loops that include m as a parameter.

Crashes when exception messages contain non-ASCII characters

I run a Swedish Rails app so failed validations will give messages containing non-ascii characters ("X måste anges" for English "X can't be blank"). Plain rspec handles this fine but autotest will fail with the following message:

Unhandled exception: invalid byte sequence in US-ASCII
/home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:594:in `gsub'
  /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:594:in `handle_results'
  /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:437:in `run_tests'
  /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:387:in `get_to_green'
  /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:364:in `block in run'
  /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:362:in `loop'
  /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:362:in `run'
  /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:248:in `run'
  /home/johan/.gem/gems/ZenTest-4.9.5/bin/autotest:6:in `<top (required)>'
  /home/johan/.gem/bin/autotest:23:in `load'
  /home/johan/.gem/bin/autotest:23:in `<main>'
Quitting
/home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:594:in `gsub': invalid byte sequence in US-ASCII (ArgumentError)
        from /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:594:in `handle_results'
        from /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:437:in `run_tests'
        from /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:387:in `get_to_green'
        from /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:364:in `block in run'
        from /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:362:in `loop'
        from /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:362:in `run'
        from /home/johan/.gem/gems/ZenTest-4.9.5/lib/autotest.rb:248:in `run'
        from /home/johan/.gem/gems/ZenTest-4.9.5/bin/autotest:6:in `<top (required)>'
        from /home/johan/.gem/bin/autotest:23:in `load'
        from /home/johan/.gem/bin/autotest:23:in `<main>'

I haven't tested but would assume this applies to any non-ASCII characters in the messages.

Version: autotest 4.4.6, autotest-rails 4.2.1
Repro: Create example that raises an exception with non-ASCII text, run autotest.

ZenTest Dependency is 4.5, old version

Hi,

Your dependency on ZenTest 4.5 broke turn's colorization on my system, which works under autotest-rails 4.1.0.

Any reason you need 4.5.0 and not 4.6.2 (which restores the pretty colors)?

thanks
Mike

Allow usage without having ZenTest installed

'autotest/rails' does not need ZenTest, but it still fails when used and ZenTest is not installed

require 'autotest/rails'
Gem::LoadError: Could not find RubyGem ZenTest (>= 0)

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.