0

为我的应用在全球和本地安装了 Chimp。features在我的应用程序的根目录创建目录。放入insertContract.feature具有以下场景的功能文件。

Feature: Input contact information

As a contract admin
I want to input contact information
So that I can save it in a database

@watch
Scenario: Go to the contract insert page
    Given I have visited Contract Insert page
    Then I see an input "supplierName"

跑黑猩猩。

chimp --ddp=http://localhost:7001 --watch 

Chimp 说它正在运行和观看标签@watch、@focus、@dev。但它不会从功能文件中获取任何内容。

Sudis-MacBook-Pro:contract tupun$ chimp --ddp=http://localhost:7001 --watch 
[chimp] Watching features with tagged with @dev,@watch,@focus

[chimp] Running...

它应该为我提供步骤定义的存根。我究竟做错了什么?

4

1 回答 1

0

我也刚开始使用黑猩猩,我使用@focus 而不是@watch 来获取定义

在此处输入图像描述

我希望,这对你有帮助。

干杯。

于 2016-01-13T19:33:33.807 回答