Zeus and remote interpreter

I'm currently evaluating the newest EAP of RubyMine.

I have setup a remote sdk to work with a vagrant instance and I'm now trying to get zeus, rspec and cucumber running.
Instead of using the shared directory from vagrant, the rails project is located in a subdirectory of the vagrant user (to get propper events).

I can start zeus server and it runs fine. Only problem I noticed is that the console output in RubyMine is not parsed correctly (no colors etc.).
But I can not manage to get rspec and cucumber to work with zeus using remote sdk. Anyone has such setup running and can guide me?

6 comments

RSpec and Cucumber execution will be implemented in the next EAP build.

Oleg.

0

Hi Oleg,

I tried it again with the latest EAP. Same result. Both cucumber and rspec do not work with remote interpreter, zeus and all features/spec in directory setting.

Is there any documentation / tutorial available how to set this up properly?

I checked the logs and excecuted the logged command by hand on the remote system which worked fine.
But it does not work within RubyMine. When I'm back at my development workstation I'll prepare a more detailed report and collect logs...

0

what kind of output do you have in this case?

0

RubyMine Zeus start output:

/home/vagrant/.rbenv/versions/2.0.0-p247/bin/ruby -C'/home/vagrant/AllesTanzbar' -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.rbenv/versions/2.0.0-p247/bin/zeus start
Starting Zeus server
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{B}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{U}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{B}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{R}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{R}(development_environment{U}(prerake{?}), test_environment{U}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{R}(development_environment{U}(prerake{?}), test_environment{U}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{R}(development_environment{B}(prerake{?}), test_environment{U}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{R}(development_environment{B}(prerake{?}), test_environment{B}(cucumber_environment{?}, test_helper{?})))
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{?}), test_environment{B}(cucumber_environment{?}, test_helper{?})))
Available commands: runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{U}), test_environment{B}(cucumber_environment{?}, test_helper{?})))
Available commands: runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{B}), test_environment{B}(cucumber_environment{?}, test_helper{?})))
Available commands: runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{R}), test_environment{B}(cucumber_environment{?}, test_helper{?})))
Available commands: rake, runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{R}), test_environment{R}(cucumber_environment{?}, test_helper{?})))
Available commands: rake, runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{R}), test_environment{R}(cucumber_environment{U}, test_helper{U})))
Available commands: rake, runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{R}), test_environment{R}(cucumber_environment{U}, test_helper{U})))
Available commands: rake, runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{R}), test_environment{R}(cucumber_environment{B}, test_helper{U})))
Available commands: rake, runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{R}), test_environment{R}(cucumber_environment{B}, test_helper{B})))
Available commands: rake, runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{R}), test_environment{R}(cucumber_environment{R}, test_helper{B})))
Available commands: rake, runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole, cucumber
Status: boot{R}(default_bundle{R}(development_environment{R}(prerake{R}), test_environment{R}(cucumber_environment{R}, test_helper{R})))
Available commands: rake, runner(aliases: r), console(aliases: c), server(aliases: s), generate(aliases: g), destroy(aliases: d), dbconsole, cucumber, test(aliases: rspec,testrb)


Cucumber RubyMine Output:

/home/vagrant/.rbenv/versions/2.0.0-p247/bin/ruby -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.rbenv/versions/2.0.0-p247/bin/zeus cucumber /home/vagrant/AllesTanzbar/features/user --format Teamcity::Cucumber::Formatter --expand --verbose --color -r features
Testing started at 20:32 ...


Process finished with exit code 1


Cucumber Command from RubyMine logs:

2013-10-07 20:32:35,593 [2992473]   INFO - esdk.transport.JschExecProcess - Executing ssh command: env "JETBRAINS_REMOTE_RUN"="1" "CUCUMBER_FORMAT"="Teamcity::Cucumber::Formatter" "ANSICON"="" "TEAMCITY_RAKE_RUNNER_MODE"="idea" "PATH"="/home/vagrant/.rbenv/versions/2.0.0-p247/bin:/usr/local/bin:$PATH" "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"=":cucumber " "RUBYLIB"="/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/bdd" "LANG"="de_DE.UTF-8" "RM_INFO"="RM-132.498" /home/vagrant/.rbenv/versions/2.0.0-p247/bin/ruby -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.rbenv/versions/2.0.0-p247/bin/zeus cucumber /home/vagrant/AllesTanzbar/features/user --format Teamcity::Cucumber::Formatter --expand --verbose --color -r features for vagrant@127.0.0.1:2222


Cucumber Command Output when executed in shell:

[vagrant][~/AllesTanzbar]$ env "JETBRAINS_REMOTE_RUN"="1" "CUCUMBER_FORMAT"="Teamcity::Cucumber::Formatter" "ANSICON"="" "TEAMCITY_RAKE_RUNNER_MODE"="idea" "PATH"="/home/vagrant/.rbenv/versions/2.0.0-p247/bin:/usr/local/bin:$PATH" "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"=":cucumber " "RUBYLIB"="/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/bdd" "LANG"="de_DE.UTF-8" "RM_INFO"="RM-132.498" /home/vagrant/.rbenv/versions/2.0.0-p247/bin/ruby -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.rbenv/versions/2.0.0-p247/bin/zeus cucumber /home/vagrant/AllesTanzbar/features/user --format Teamcity::Cucumber::Formatter --expand --verbose --color -r features
Code:
  * features/support/env.rb


##teamcity[enteredTheMatrix timestamp = '2013-10-07T20:35:47.633+0200']
Features:
  * /home/vagrant/AllesTanzbar/features/user/test.feature
Parsing feature files took 0m0.007s


##teamcity[customProgressStatus testsCategory = 'Scenarios' count = '0' timestamp = '2013-10-07T20:35:47.641+0200']

##teamcity[testSuiteStarted name = 'Feature: Test Zeus and Cucumber with RubyMine' locationHint = 'file:///home/vagrant/AllesTanzbar/features/user/test.feature:1' timestamp = '2013-10-07T20:35:47.642+0200']

##teamcity[testSuiteStarted name = 'Scenario: Run all Cucumber features' locationHint = 'file:///home/vagrant/AllesTanzbar/features/user/test.feature:6' timestamp = '2013-10-07T20:35:47.643+0200']

##teamcity[customProgressStatus type = 'testStarted' timestamp = '2013-10-07T20:35:47.643+0200']

##teamcity[testStarted name = 'Given  there is a directory full of features' captureStandardOutput = 'true' locationHint = 'file:///home/vagrant/AllesTanzbar/features/user/test.feature:7' timestamp = '2013-10-07T20:35:47.963+0200']


You can implement step definitions for undefined steps with these snippets:

Given(/^there is a directory full of features$/) do
  pending # express the regexp above with the code you wish you had
end

##teamcity[testFailed name = 'Given  there is a directory full of features' message = 'Undefined step: "there is a directory full of features" (Cucumber::Undefined exception)' details = './features/user/test.feature:7:in `Given there is a directory full of features|'' error = 'true' timestamp = '2013-10-07T20:35:47.963+0200']

##teamcity[testFinished name = 'Given  there is a directory full of features' duration = '1' diagnosticInfo = 'cucumber  f/s=(1381170947963, 1381170947962), duration=1, time.now=2013-10-07 20:35:47 +0200' timestamp = '2013-10-07T20:35:47.963+0200']

##teamcity[testStarted name = 'And  I have configured a Cucumber Run/Debug configuration' captureStandardOutput = 'true' locationHint = 'file:///home/vagrant/AllesTanzbar/features/user/test.feature:8' timestamp = '2013-10-07T20:35:47.964+0200']


You can implement step definitions for undefined steps with these snippets:

And(/^I have configured a Cucumber Run\/Debug configuration$/) do
  pending # express the regexp above with the code you wish you had
end

##teamcity[testFailed name = 'And  I have configured a Cucumber Run/Debug configuration' message = 'Undefined step: "I have configured a Cucumber Run/Debug configuration" (Cucumber::Undefined exception)' details = './features/user/test.feature:8:in `And I have configured a Cucumber Run/Debug configuration|'' error = 'true' timestamp = '2013-10-07T20:35:47.964+0200']

##teamcity[testFinished name = 'And  I have configured a Cucumber Run/Debug configuration' duration = '0' diagnosticInfo = 'cucumber  f/s=(1381170947964, 1381170947964), duration=0, time.now=2013-10-07 20:35:47 +0200' timestamp = '2013-10-07T20:35:47.964+0200']

##teamcity[testStarted name = 'When  I press Run Cucumber button' captureStandardOutput = 'true' locationHint = 'file:///home/vagrant/AllesTanzbar/features/user/test.feature:9' timestamp = '2013-10-07T20:35:47.965+0200']


You can implement step definitions for undefined steps with these snippets:

When(/^I press Run Cucumber button$/) do
  pending # express the regexp above with the code you wish you had
end

##teamcity[testFailed name = 'When  I press Run Cucumber button' message = 'Undefined step: "I press Run Cucumber button" (Cucumber::Undefined exception)' details = './features/user/test.feature:9:in `When I press Run Cucumber button|'' error = 'true' timestamp = '2013-10-07T20:35:47.965+0200']

##teamcity[testFinished name = 'When  I press Run Cucumber button' duration = '0' diagnosticInfo = 'cucumber  f/s=(1381170947965, 1381170947965), duration=0, time.now=2013-10-07 20:35:47 +0200' timestamp = '2013-10-07T20:35:47.965+0200']

##teamcity[testStarted name = 'Then  I should see the results for all features in the Run console' captureStandardOutput = 'true' locationHint = 'file:///home/vagrant/AllesTanzbar/features/user/test.feature:10' timestamp = '2013-10-07T20:35:47.966+0200']


You can implement step definitions for undefined steps with these snippets:

Then(/^I should see the results for all features in the Run console$/) do
  pending # express the regexp above with the code you wish you had
end

##teamcity[testFailed name = 'Then  I should see the results for all features in the Run console' message = 'Undefined step: "I should see the results for all features in the Run console" (Cucumber::Undefined exception)' details = './features/user/test.feature:10:in `Then I should see the results for all features in the Run console|'' error = 'true' timestamp = '2013-10-07T20:35:47.966+0200']

##teamcity[testFinished name = 'Then  I should see the results for all features in the Run console' duration = '0' diagnosticInfo = 'cucumber  f/s=(1381170947966, 1381170947966), duration=0, time.now=2013-10-07 20:35:47 +0200' timestamp = '2013-10-07T20:35:47.966+0200']

##teamcity[testSuiteFinished name = 'Scenario: Run all Cucumber features' timestamp = '2013-10-07T20:35:47.968+0200']

##teamcity[testSuiteFinished name = 'Feature: Test Zeus and Cucumber with RubyMine' timestamp = '2013-10-07T20:35:47.968+0200']

##teamcity[customProgressStatus testsCategory = '' count = '0' timestamp = '2013-10-07T20:35:47.968+0200']
1 scenario (1 undefined)
4 steps (4 undefined)
0m0.326s
/home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1037:in `block in process_args': invalid option: --format (OptionParser::InvalidOption)
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1016:in `new'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1016:in `process_args'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1066:in `_run'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:1059:in `run'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/minitest-4.7.5/lib/minitest/unit.rb:795:in `block in autorun'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:103:in `fork'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:103:in `command'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:80:in `block (3 levels) in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:80:in `fork'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:80:in `block (2 levels) in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in `each'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in `block in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in `loop'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in `go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `block (3 levels) in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `fork'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `block (2 levels) in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in `each'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in `block in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in `loop'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in `go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `block (3 levels) in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `fork'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `block (2 levels) in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in `each'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in `block in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in `loop'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in `go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `block (3 levels) in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `fork'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:78:in `block (2 levels) in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in `each'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:73:in `block in go'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in `loop'
 from /home/vagrant/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/zeus-0.13.4.pre2/lib/zeus.rb:62:in `go'
 from -e:1:in `<main>'


RubyMine RSpec Output:

/home/vagrant/.rbenv/versions/2.0.0-p247/bin/ruby -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.rbenv/versions/2.0.0-p247/bin/zeus rspec /home/vagrant/AllesTanzbar/spec/user --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --pattern **/*_spec.rb
Testing started at 20:27 ...


Process finished with exit code 1


RSpec Command from RubyMine logs:

2013-10-07 19:56:19,383 [ 816263]   INFO - esdk.transport.JschExecProcess - Executing ssh command: env "LANG"="de_DE.UTF-8" "TEAMCITY_RAKE_RUNNER_MODE"="idea" "PATH"="/home/vagrant/.rbenv/versions/2.0.0-p247/bin:/usr/local/bin:$PATH" "JETBRAINS_REMOTE_RUN"="1" "RUBYLIB"="/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/bdd" "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"=":rspec " "RM_INFO"="RM-132.498" /home/vagrant/.rbenv/versions/2.0.0-p247/bin/ruby -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.rbenv/versions/2.0.0-p247/bin/zeus rspec /home/vagrant/AllesTanzbar/spec --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --pattern **/*_spec.rb --backtrace for vagrant@127.0.0.1:2222


RSpec Command Output when executed in Shell:

[vagrant][~/AllesTanzbar]$ env "LANG"="de_DE.UTF-8" "TEAMCITY_RAKE_RUNNER_MODE"="idea" "PATH"="/home/vagrant/.rbenv/versions/2.0.0-p247/bin:/usr/local/bin:$PATH" "JETBRAINS_REMOTE_RUN"="1" "RUBYLIB"="/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/bdd" "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"=":rspec " "RM_INFO"="RM-132.498" /home/vagrant/.rbenv/versions/2.0.0-p247/bin/ruby -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.rbenv/versions/2.0.0-p247/bin/zeus rspec /home/vagrant/AllesTanzbar/spec/user --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --pattern **/*_spec.rb

##teamcity[enteredTheMatrix timestamp = '2013-10-07T20:28:27.402+0200']

##teamcity[testCount count = '0' timestamp = '2013-10-07T20:28:27.402+0200']

0 examples, 0 failures, 0 passed

Finished in 0.000439426 seconds


RSpec Command and Output when executed in Shell with quoted pattern:

[vagrant][~/AllesTanzbar]$ env "LANG"="de_DE.UTF-8" "TEAMCITY_RAKE_RUNNER_MODE"="idea" "PATH"="/home/vagrant/.rbenv/versions/2.0.0-p247/bin:/usr/local/bin:$PATH" "JETBRAINS_REMOTE_RUN"="1" "RUBYLIB"="/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/bdd" "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"=":rspec " "RM_INFO"="RM-132.498" /home/vagrant/.rbenv/versions/2.0.0-p247/bin/ruby -e '$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.rbenv/versions/2.0.0-p247/bin/zeus rspec /home/vagrant/AllesTanzbar/spec/user --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --pattern '**/*_spec.rb'

##teamcity[enteredTheMatrix timestamp = '2013-10-07T20:29:37.101+0200']

##teamcity[testCount count = '1' timestamp = '2013-10-07T20:29:37.201+0200']

##teamcity[testSuiteStarted name = 'My behaviour' locationHint = 'file:///home/vagrant/AllesTanzbar/spec/user/my_example_spec.rb:1' timestamp = '2013-10-07T20:29:37.202+0200']

##teamcity[testStarted name = 'My behaviour should do something' captureStandardOutput = 'true' locationHint = 'file:///home/vagrant/AllesTanzbar/spec/user/my_example_spec.rb:3' timestamp = '2013-10-07T20:29:37.207+0200']

##teamcity[testFailed name = 'My behaviour should do something' message = 'expected: false|n     got: true (using ==)' details = './spec/user/my_example_spec.rb:5:in `block (2 levels) in <top (required)>|'|n-e:1:in `<main>|'' timestamp = '2013-10-07T20:29:37.208+0200']

##teamcity[testFinished name = 'My behaviour should do something' duration = '5' diagnosticInfo = 'rspec2 |[2.14.5|], f/s=(1381170577207, 1381170577202), duration=5, time.now=2013-10-07 20:29:37 +0200, raw|[:started_at|]=2013-10-07 20:29:37 +0200, raw|[:finished_at|]=2013-10-07 20:29:37 +0200, raw|[:run_time|]=0.00477576' timestamp = '2013-10-07T20:29:37.209+0200']

##teamcity[testSuiteFinished name = 'My behaviour' timestamp = '2013-10-07T20:29:37.209+0200']

1 example, 1 failure, 0 passed

Finished in 0.007960904 seconds



Attachment(s):
RSpec.png
Cucumber.png
Zeus.png
0

Hi,

could you please try to specify working directory in RSpec and Cucumber run configurations.
BTW have these configuration been created by RM or you have created them manully?

Regards, Oleg.

0

Hi Oleg,

setting the working directory solved the issue.
Thx for your help!

0

Please sign in to leave a comment.