当使用 ruby 和黄瓜时,它会限制我可以用 ruby 做的事情吗

When using ruby and cucumber does it limit things I can do with ruby

基本上我应该避免在 ruby 中做的事情可能会破坏黄瓜。 如果你能让我作为一个从 C# 到 Pickup ruby 的人更多地理解黄瓜,那就加分了。

东西"I should avoid doing in ruby that may break cucumber"?不。Cucumber is a language-agnostic testing framework. Cucumber's goal is to express use cases in human-readable language that serves as both business specifications and executable test scenarios. In fact, cucumber 最初是从 rspec 派生出来的,因此它是 ruby 开源社区的产物。在此过程中,您可能 运行 遇到一些陷阱,但没有灵丹妙药。您只需要阅读文档(其中有很多)并顺应学习曲线。