[MacRuby] #425: RSpec not working
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- I tried to port Datamapper/Sqlite3 to MacRuby yesterday, but without RSpec working it's hard to know what is breaking. It (and other testing frameworks) would be a great help when porting/testing Ruby gems to MacRuby. -- Ticket URL: <http://www.macruby.org/trac/ticket/425> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by jens.nockert@…): I saw on the mailing list that Conrad Taylor wrote last week that he was going to look at it, has that come to anything yet? -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:1> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by mattaimonetti@…): The major problem with rspec is that it uses Kernel#caller to process the specs and currently our #caller method isn't fully compatible with 1.9's. Regarding DM/sqlite3, because DataObjects is C based, it might not be that easy. -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:2> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by conradwt@…): In short, as Matt mentioned, the RSpec gem requires Kernel#caller to execute the specs and MacRuby's implementation currently has 9 failures. Futhermore, the RSpec gem has a runtime dependency on test-unit-1.2.3 if you're using a VM that conforms to Ruby 1.9 language specification. In short, RSpec is a work in progress. Also, It's great that we're working on gems for MacRuby but, after logically thinking about the priorities for MacRuby, it seems that the core and language parts of the Ruby 1.9 specification should be given the highest priority. -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:3> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by conradwt@…): @jens.nocket If you need to run specs against MacRuby VM, then I recommend using MSpec gem. I usually just install the gem with Ruby 1.9.1/1.9.2. Now, you should be able to run Gem specs against MacRuby using CRuby. -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:4> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by eloy.de.enige@…): I would personally recommend Bacon. MSpec is also an option, as we run the rubyspec with it, but there are still some issues we work around, and it's not meant to be as flexible as one would expect when testing applications. It would be extra great if you could make the test suites of your gem of choice to work with Bacon and add matchers that are missing, so we can create a collection of rspec matchers others can use when moving from rspec to Bacon. Matt was already looking into this I think… -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:5> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by mattaimonetti@…): I was.. but didn't have time to look too much into it yet. However I'm meeting with David Chelimsky tomorrow, I'll see what he's suggesting as I know he was planning on cleaning up RSpec internals. -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:6> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by honglilai@…): I confirm that RSpec is still broken, though I'm not sure whether it's for the same reasons the original reporter reported. This is what I get when trying to run the test suite for daemon_controller: {{{ [hongli@Minato daemon_controller (master)]$ macspec -f s -c spec/daemon_controller_spec.rb core:in `const_missing:': uninitialized constant Formatter (NameError) from core:in `<main>' from core:in `eval:' from core:in `map' from options.rb:in `load_formatters:' from options.rb:in `formatters' from reporter.rb:111:in `formatters' from reporter.rb:in `start:' from example_group_runner.rb:in `prepare' from example_group_runner.rb:in `run' from options.rb:in `run_examples' from command_line.rb:in `run' }}} There's actually also another issue here: the backtrace doesn't always contain the line number and the filename is not absolute. While with some work I can figure out where options.rb is, I don't know which line in options.rb the exception was thrown. -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:7> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by joshua.ballanco@…): Replying to [comment:7 honglilai@…]:
I confirm that RSpec is still broken, though I'm not sure whether it's for the same reasons the original reporter reported. This is what I get when trying to run the test suite for daemon_controller:
{{{ [hongli@Minato daemon_controller (master)]$ macspec -f s -c spec/daemon_controller_spec.rb core:in `const_missing:': uninitialized constant Formatter (NameError) }}}
This looks like the same sort of error I was getting in https://www.macruby.org/trac/ticket/564 -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:8> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: martinlagardette@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Changes (by lsansonetti@…): * owner: lsansonetti@… => martinlagardette@… Comment: Thibault, can you have a look at this bug? -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:9> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: martinlagardette@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by lsansonetti@…): Seems good, please go ahead and commit :) -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:10> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: martinlagardette@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: This should be fixed with r3589 :-) Thanks for the report :-) -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:11> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: martinlagardette@… Type: defect | Status: reopened Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: Keywords: | ------------------------------------+--------------------------------------- Changes (by martinlagardette@…): * status: closed => reopened * resolution: fixed => -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:12> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: martinlagardette@… Type: defect | Status: reopened Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: Keywords: | ------------------------------------+--------------------------------------- Comment(by martinlagardette@…): Most of rspec now works, but not 100% of it, so I'll leave this one open -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:13> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: martinlagardette@… Type: defect | Status: reopened Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: Keywords: | ------------------------------------+--------------------------------------- Comment(by lsansonetti@…): I reverted r3589 because it breaks irb. -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:14> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: martinlagardette@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Changes (by mattaimonetti@…): * status: reopened => closed * resolution: => fixed Comment: rspec 2 beta seems to now be running. {{{ $ cat test.spec #!/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/bin/macruby require 'rubygems' require 'rspec' describe "String" do it "should be a String" do "test".class.should == String end end $ ./test.spec . Finished in 0.56218 seconds 1 example, 0 failures }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:16> MacRuby <http://macruby.org/>
#425: RSpec not working ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: martinlagardette@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 0.6 => MacRuby 0.7 -- Ticket URL: <http://www.macruby.org/trac/ticket/425#comment:17> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby