Iphone Frank安装完成,但测试不起作用

Iphone Frank安装完成,但测试不起作用,iphone,ios,testing,cucumber,frank,Iphone,Ios,Testing,Cucumber,Frank,我正在设置Frank,并且已经完成了大部分设置。我正在尝试运行内置cucumber测试,它只是简单地旋转设备 我在MyProject/Frank/中执行cucumber-d,并获得以下信息: cucumber -d Feature: As an iOS developer I want to have a sample feature file So I can see what my next step is in the wonderful world of Frank/Cuc

我正在设置Frank,并且已经完成了大部分设置。我正在尝试运行内置cucumber测试,它只是简单地旋转设备

我在
MyProject/Frank/
中执行
cucumber-d
,并获得以下信息:

cucumber -d
Feature: 
  As an iOS developer
  I want to have a sample feature file
  So I can see what my next step is in the wonderful world of Frank/Cucumber testing

  Scenario:                                             # features/my_first.feature:6
      Rotating the simulator for demonstration purposes
    Given I launch the app                              # features/step_definitions/launch_steps.rb:5
    Given the device is in landscape orientation        # features/my_first.feature:9
    Given the device is in portrait orientation         # features/my_first.feature:10
    Given the device is in landscape orientation        # features/my_first.feature:11
    Given the device is in portrait orientation         # features/my_first.feature:12

1 scenario (1 skipped)
5 steps (1 skipped, 4 undefined)
0m0.002s

You can implement step definitions for undefined steps with these snippets:

Given(/^the device is in landscape orientation$/) do
  pending # express the regexp above with the code you wish you had
end

Given(/^the device is in portrait orientation$/) do
  pending # express the regexp above with the code you wish you had
end

只是困惑,希望我把事情安排好。感谢您的回答。

要使用Frank预定义的步骤,您应该在“launch_steps.rb”文件的开头包含以下行,该文件通常位于“yourAppWorkspace/Frank/features/step_definitions”下:

然后,如果在features目录下运行“cucumber”,则步骤应该正确运行


您还可以在这里看到所有预定义的步骤:

我刚才就知道了。我跑了
cucumber-d
做了一次“干跑”,而不是像一个应该有的那样只跑
cucumber。当我运行cumber时,一切正常。

你能发布功能文件吗?
require 'frank-cucumber/core_frank_steps.rb'