无法使用 Ruby 1.9.2 和 Watir 来通过 ci_reporter 生成 xml 结果
我已经安装了 Watir 1.7.1、Ruby 1.9.2、ci_reporter 1.6.4、测试单元 2.2.0。
由于 Ruby 1.9.2 没有附带 testunit,因此我单独安装了 testunit。
当我运行脚本时,ci_reporter 不会在运行测试的目录中创建“test/reports”文件夹。当我执行脚本时,脚本运行正常,但未创建文件夹。
文件夹“test/reports”是自己创建的还是“test/reports”文件夹应该作为 testunit 的一部分。
以下是iam运行的简单测试,请看代码片段:
gem 'test-unit'
require 'test/unit/ui/console/testrunner.rb'
require 'ci/reporter/rake/test_unit_loader.rb'
require 'watir'
class My_Test < Test::Unit::TestCase
def test_me
browser = Watir::IE.start('http://www.google.com')
assert(browser.link(:text, 'About Google').exists?)
browser.close
end
end
Does ruby 1.9.2 support ci_reporter 1.6.4?
任何人都可以帮我举例说明 ci_reporter 如何创建报告以及报告的存储位置吗?
I have installed Watir 1.7.1, Ruby 1.9.2, ci_reporter 1.6.4, test unit 2.2.0.
Since testunit donot come with Ruby 1.9.2, I installed the testunit seperately.
When I run the script, ci_reporter donot create 'test/reports' folder in the directory iam running the tests. When i execute the script, script runs fine but the folder is not created.
Does the folder 'test/reports' gets created by itself or the 'test/reports' folder should be as part of testunit.
Following is the simple test iam running, please look at the code snippet :
gem 'test-unit'
require 'test/unit/ui/console/testrunner.rb'
require 'ci/reporter/rake/test_unit_loader.rb'
require 'watir'
class My_Test < Test::Unit::TestCase
def test_me
browser = Watir::IE.start('http://www.google.com')
assert(browser.link(:text, 'About Google').exists?)
browser.close
end
end
Does ruby 1.9.2 support ci_reporter 1.6.4?
Can any one help me with an example as to how the reports would be created by ci_reporter and where the reports get stored?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据蒂芙尼的回应和她提供的链接,我认为你的问题的答案是“不”。目前不支持'
我也同意使用 1.8.7 的建议,这是我已经使用了一段时间的版本,它与 watir 配合得很好。
Based on Tiffany's response and the link she gave, I think the answer to your question is 'NO. it is not supported at this time'
I'd also echo the recommendation to use 1.8.7 that's what I've been using for a while now and it is working good with watir.
我认为大多数人仍在使用 ruby 1.8.7 和 Watir。我仍然使用 1.8.7,并且每天使用 ci_reporter 和 Watir 没有任何问题。
您有机会在 1.8.7 环境中尝试您的代码吗?我刚刚发现这篇博文表明 ci_reporter 尚未更新为可与 ruby 1.9.2 配合使用: http://www.larkware.com/posts/fix-ci-reporter-for-test-unit-2-dot-0
I think most folks are still using ruby 1.8.7 with Watir. I'm still on 1.8.7, and I use ci_reporter with Watir every day without any problems.
Any chance you can try your code in a 1.8.7 environment? I just found this blog post that indicates that ci_reporter has not been updated to work with ruby 1.9.2: http://www.larkware.com/posts/fix-ci-reporter-for-test-unit-2-dot-0