作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我通过 CocoaPods 将 EarlGrey 添加到我的 iOS 项目中。我创建了新目标,如下所述:https://github.com/google/EarlGrey/blob/master/docs/install-and-run.md .
我的问题是,按照此说明,简单的 EarlGrey swift 测试被错误解释并导致构建错误
有人遇到过这样的问题吗?我能做些什么来修复它吗?
由于我是 iOS/EarlGrey 的新手 - 请随时向我提出任何我可以添加到这个问题中以使其更具体的建议。
评论后编辑
在执行 gem install earlgrey
之后,pod install
命令导致以下错误:
RuntimeError - Test target group not found!
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/configure_earlgrey.rb:371:in `copy_swift_files'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:25:in `block (2 levels) in analyze'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:24:in `each'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:24:in `block in analyze'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:23:in `each'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/earlgrey-1.9.3/lib/earlgrey/extensions/analyzer_extensions.rb:23:in `analyze'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:236:in `analyze'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:150:in `block in resolve_dependencies'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:149:in `resolve_dependencies'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:110:in `install!'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/command/install.rb:41:in `run'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:52:in `run'
/Users/karolgil/.rvm/gems/ruby-2.1.10/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'
/Users/karolgil/.rvm/gems/ruby-2.1.10/bin/pod:23:in `load'
/Users/karolgil/.rvm/gems/ruby-2.1.10/bin/pod:23:in `<main>'
最佳答案
看起来你还没有添加 EarlGrey.swift,如果你安装了 earlgrey.gem 并使用 Pod 来管理你的项目,它应该会自动添加到你的测试目标中。还要确保安装了最新的 earlgrey gem。
或Carthage .
或手动下载this file .
关于iOS Earl Gray - 选择缺少的参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44306316/
我通过 CocoaPods 将 EarlGrey 添加到我的 iOS 项目中。我创建了新目标,如下所述:https://github.com/google/EarlGrey/blob/master/d
这可能是一个相当新手的问题,但 RDF 图和 sparql 查询让我很困惑。这是我需要搜索的(EARL,评估和报告语言)RDF 文件的相关部分:
我是一名优秀的程序员,十分优秀!