Mac Mini の Rubymine IDE で rspec を使用していくつかの calabash-ios テストを作成することに成功しました。
しかし、最近 iMac に移行したため、Ruby と必要な gem を構成してインストールする必要がありました。ただし、今回は次のエラーが原因でテストを実行できず、行き詰まりました。(以下にエラーメッセージをコピーしました)
これは、両方のマシンの gem のバージョンの違いに関連していると考えられます。私は詳細にバージョン比較を行い、かなりの数の違いを観察しました..ここに、このエラーに関連すると思われるものをリストします:はもう存在しません。代わりに更新されたバージョン)
Gem 名 = Version on OldMachine && Version on NewMachineの形式でリストされた tge バージョン
CFPropertyList = 2.2.0 && 2.2.1
httpclient = 2.3.3 && 2.3.4.1
rspec = 2.14.1、2.9.0.rc2 && 2.14.1
rspec コア = 2.14.4、2.14.3、2.9.0.rc2 && 2.14.5
rspec-expectations = 2.14.1、2.14.0、2.9.0.rc2 && 2.14.2
rspec-モック = 2.14.3、2.14.2、2.14.1、2.9.0.rc2 && 2.14.3
rubygems-update = 2.0.6、2.0.5 && 2.0.7
gem の更新されたバージョンで何か問題に遭遇した人はいますか?
これをできるだけ早く解決するのに役立つポインターを共有してください。gem の古いバージョンに移行して、テストが正しく機能するかどうかを確認する方法はありますか?
または、テストを実行するために考えて提案できることは他にありますか??
ファイアウォールがオフになっていることを確認しました
_spec.rb ファイルの「before」ブロックでシミュレーターを起動しようとすると、エラーが発生します: @launcher = Calabash::Cucumber::Launcher.new @launcher.new
-------------------------------------------------- ------------- エラーの詳細 ----------------
/Users/admin/.rbenv/versions/2.0.0-p247/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/admin/.rbenv/versions/2.0.0-p247/bin/rspec /Users/admin/Desktop/MyApp-iPhone/sources/spec/FeaturedPage_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter
Testing started at 3:10 PM ...
#<Spec::Runner::Formatter::TeamcityFormatter:0x007fbb58997b70>
#<RSpec::Core::Formatters::DocumentationFormatter:0x007fbb5b220948>
Smoke Test
Exploring Featured Page
CFFormatError: invalid XML: #<ArgumentError: wrong number of arguments (0 for 1+)>
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/operations.rb:67:in `tap'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/parsers/baseparser.rb:183:in `pull'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/parsers/treeparser.rb:22:in `parse'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/document.rb:283:in `build'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/document.rb:43:in `initialize'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbREXMLParser.rb:16:in `new'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbREXMLParser.rb:16:in `block in load'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbREXMLParser.rb:16:in `open'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbREXMLParser.rb:16:in `load'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbCFPropertyList.rb:345:in `load'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbCFPropertyList.rb:245:in `initialize'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:44:in `new'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:44:in `block in derived_data_dir_for_project'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `each'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `find'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `derived_data_dir_for_project'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:134:in `app_bundle_or_raise'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launcher.rb:80:in `relaunch'
/Users/admin/Desktop/MyApp-iPhone/trunk/sources/spec/FeaturedPage_spec.rb:26:in `block (3 levels) in <top (required)>'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:21:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `block in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `each'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:446:in `run_hook'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:345:in `run_before_each_hooks'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:300:in `run_before_each'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:113:in `block in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:254:in `with_around_each_hooks'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:111:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:390:in `block in run_examples'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `map'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `run_examples'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:371:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `block in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `map'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `map'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb:58:in `report'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:25:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:80:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:17:in `block in autorun'
...
wrong number of arguments (0 for 1+)
Line: -1
Position: -1
Last 80 unconsumed characters:
./spec/FeaturedPage_spec.rb:26:in `block (3 levels) in <top (required)>'
[FP100-015] should display Location selected under Featured Page Header (FAILED - 1)
Failures:
1) Smoke Test Exploring Featured Page [FP100-015] should display Location selected under Featured Page Header
Failure/Error: @launcher.relaunch
CFFormatError:
invalid XML: #<ArgumentError: wrong number of arguments (0 for 1+)>
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/operations.rb:67:in `tap'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/parsers/baseparser.rb:183:in `pull'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/parsers/treeparser.rb:22:in `parse'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/document.rb:283:in `build'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rexml/document.rb:43:in `initialize'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbREXMLParser.rb:16:in `new'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbREXMLParser.rb:16:in `block in load'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbREXMLParser.rb:16:in `open'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbREXMLParser.rb:16:in `load'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbCFPropertyList.rb:345:in `load'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/CFPropertyList-2.2.1/lib/rbCFPropertyList.rb:245:in `initialize'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:44:in `new'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:44:in `block in derived_data_dir_for_project'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `each'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `find'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:42:in `derived_data_dir_for_project'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launch/simulator_helper.rb:134:in `app_bundle_or_raise'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/calabash-cucumber-0.9.151/lib/calabash-cucumber/launcher.rb:80:in `relaunch'
/Users/admin/Desktop/MyApp-iPhone/trunk/sources/spec/FeaturedPage_spec.rb:26:in `block (3 levels) in <top (required)>'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:21:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `block in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `each'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:446:in `run_hook'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:345:in `run_before_each_hooks'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:300:in `run_before_each'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:113:in `block in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:254:in `with_around_each_hooks'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:111:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:390:in `block in run_examples'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `map'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `run_examples'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:371:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `block in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `map'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `map'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block in run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb:58:in `report'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:25:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:80:in `run'
/Users/admin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:17:in `block in autorun'
...
wrong number of arguments (0 for 1+)
Line: -1
Position: -1
Last 80 unconsumed characters:
# ./spec/FeaturedPage_spec.rb:26:in `block (3 levels) in <top (required)>'
1 example, 1 failure, 0 passed
Finished in 0.103899 seconds
Finished in 0.1039 seconds
1 example, 1 failure
Failed examples:
rspec ./spec/FeaturedPage_spec.rb:103 # Smoke Test Exploring Featured Page [FP100-015] should display Location selected under Featured Page Header
Process finished with exit code 1
-------------------------------------------------- -------------エラーの詳細------------------
早い段階でこれに関する助けに感謝します。分析が必要な場合は、両方のマシンの宝石リストの内容を共有できます。
ありがとうサム