Coder Social home page Coder Social logo

mumuki / mumuki-ruby-runner Goto Github PK

View Code? Open in Web Editor NEW
4.0 9.0 1.0 122 KB

:gem: Sinatra server for running Rspec tests within Mumuki

License: MIT License

Ruby 99.20% Dockerfile 0.32% Shell 0.48%
ruby mumuki educational programming runner code-evaluation docker

mumuki-ruby-runner's Introduction

Stories in Ready Build Status Code Climate Test Coverage

mumuki-ruby-runner

Install the server

docker pull mumuki/mumuki-rspec-worker:2.0
bundle install

Run the server

RACK_ENV=development rackup -p 4567

mumuki-ruby-runner's People

Contributors

aguspina avatar faloi avatar flbulgarelli avatar giuliano64 avatar julian-berbel avatar luchotc avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

flbulgarelli

mumuki-ruby-runner's Issues

Errores de compilación arrojan generan mensajes excesivamente largos

Por ejemplo si en este ejercicio falta un end:

module Pepita
  @energia = 1000

  def self.energia
    @energia 
  end

  def self.volar_en_circulos!
    @energia -= 10
  end
  
  def self.comer_alpiste!(gramos)
    @energia += gramos * 15
  end  

  def self.debil?
    @energia < 100
  end
  
  def self.feliz?
    @energia > 1000
  end

Se obtiene el siguente error:

/usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `load': solucion.rb:93: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
	from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
	from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `each'
	from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
	from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:100:in `setup'
	from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:86:in `run'
	from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:71:in `run'
	from /usr/local/bundle/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:45:in `invoke'
	from /usr/local/bundle/gems/rspec-core-3.5.4/exe/rspec:4:in `<top (required)>'
	from /usr/local/bundle/bin/rspec:23:in `load'
	from /usr/local/bundle/bin/rspec:23:in `<main>'

Más allá de que sería deseable incorporar un FeedbackHook, el mensaje debería ser recortado, eliminado el strack-trace, y mostrando sólo lo siguiente:

solucion.rb:93: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)

Support expectations

Some inspections should support are:

  • HasMethod:x whether the target class declared the given method
  • HasClass whether the target class exists
  • HasVariable whether the target variable exists
  • HasUsage:x whether the target method uses the given method
  • HasArity:x whether the target method has the given arity

The inspector may be implemented as a simple rspec test, since most if not all those checks may be implemented at runtime

Improve query errors

Actual message:
/tmp/mumuki.compile20170328-22351-1e53n8e.rb:22:in `<main>': undefined method `bailar' for Pepita:Module (NoMethodError)

Expected message:
undefined method `bailar' for Pepita:Module (NoMethodError)

Update ruby version to 2.6

We should update ruby language version to 2.6. This affects both the worker and the mulang-ruby package

Server not working

This error appears after any submission:

Connection refused - connect(2)

Run tests from Playground Exercises

I'd like the feature of running ruby tests (Minitest) from a Playground kind of exercise.

I imagine something like this:

image

The underlying idea is to give the students a grasp of the normal flow of unit test development.

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.