Rake 测试加载器 - 加载错误
我是红宝石新手。
我试图从应用程序根目录运行 rake 测试,但出现 loaderror,没有可以从 rake 测试加载器加载的文件:5,即它无法找到或加载测试文件。
我创建了一个新应用程序来查看此行为是否是应用程序。相关,但仍然不起作用。
我应该去哪里看?这与 PATH 变量或..有关吗?我想避免重新安装 ruby。
谢谢, 加比
I am a new with ruby.
I am trying to run rake test from the application root and I get loaderror, no such file to load from the rake test loader : 5, i.e. it is not able to locate or load the test files.
I created a new app to see if this behaviour is app. related, but it still doesn't work.
Where should I look? Is this related to the PATH variable or ..? I would like to avoid reinstalling ruby.
Thanks,
gabi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
rake
文档将是一个很好的起点。您可能缺少Rakefile
。The
rake
documentation would be a good place to start. You're probably missing aRakefile
.如果在 rake_test_loader.rb 中知道正在加载的测试文件的完整路径,那么它似乎可以工作。但即便如此,我还是收到一个错误 - sqllite3 not found for Monitor.rb - 这很奇怪,因为我显式配置了 mysql 的项目和测试环境。更新..重新启动后它可以工作..但仍然如此。可能与 load_path 有关
if in the rake_test_loader.rb would know the full path of the test files beeing loaded it seems to work. But even so, I get an error - sqllite3 not found for monitor.rb - which is weird since I explicitly configured the project and the test env for mysql. Update .. after restarting it work .. but still. Probably something to to do with the load_path