|
|
|
1. It does happen in a ruby on rails project
2. I'm not sure what you are referring to. We simply create a new ruby script and 'require' the appropriate spec_helper file. This works fine when we run it through the command line with 'ruby [spec file name]' 3. Command line is as follows: C:/ruby/ruby/bin/ruby.exe -e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift) C:/ruby/ruby/bin/spec C:/ruby/workspace/GiftGuide-trunk/spec/controllers/gift_lists_controller_spec.rb -c 4. We have selected Test::Unit as the framework. However, we have both Test Unit and RSPEC tests in our project, and we do not want to have to change the IDEA settings each time we want to run rspec or TestUnit tests. We would ideally like IDEA to be smart enough to know whether it should run the test as rspec or testunit. Ok, i've understood what the problem is. Plugin has some problems with understanding of ouput format of windows colouring gem(win32console) . I will fix it soon.
As quick fix I suggest you to run spec without "-c" argument. 1. Open "Run configurations" dialog
If you want use coloured output in IDEA you should remove "win32console" gem and disable check
begin ; require 'Win32/Console/ANSI' if @colour && PLATFORM =~ /win32/ ; rescue LoadError ; raise "You must gem install win32console to use colour on Windows" ; end in method def colour=(colour)
@colour = colour
begin ; require 'Win32/Console/ANSI' if @colour && PLATFORM =~ /win32/ ; rescue LoadError ; raise "You must gem install win32console to use colour on Windows" ; end
end
But this fix will disabled colouring in windows console. You can also make a feature request on the rspec project. Perhaps using the normal (non Win32) console coloring can be an option.
Brian, this is a good idea! i've created issue http://rubyforge.org/tracker/?func=detail&atid=3149&aid=15604&group_id=797
We've implemented our formatter, that doesn't use "colour" option. Thus issue is obsolete.
See Diana version, rev.203148 |
|||||||||||||||||||||||||||||||||||||||||||||||||
1. It occurs in rails or ruby project?
2. Are you sure that IDEA creates RSpec run configuration?
3. Please provide command line (first line in IDEA console)
4. What test framework is selected in [Settings]->[Project Settings]
> [your module]> [Test Framework]P.S: I suppose Idea runs you specs with Test::Unit tests runner.