2

これは私がcygwinに入力しているものです:

cucumber.bat features -p super

これはスーパー プロファイルです。

super: FIG_NEWTON_FILE=local.yml --no-source --color --tags ~@nonsuper,~@unimplemented --format pretty  

これは、スキップしたいテストの例です。

@nonsuper  
Scenario: Try to set denial specials
  Then the "Denial Specialist" field is disabled at the "summary" view

これらのタグを使用してシナリオと機能を実行しています。

プロファイルで何か間違ったことをしたと思いますが、何が原因かわかりません。

助けてくれてありがとう=]

4

2 に答える 2

5

あなたがするとき:

--tags ~@nonsuper,~@unimplemented

@nonsuperタグなしまたはタグなしでシナリオを実行することを意味します@unimplemented。シナリオは@unimplementedタグを持たないという要件を満たしているため、実行されます。

あなたが望むものは:

--tags ~@nonsuper --tags ~@unimplemented

これは、タグなしでシナリオを実行すること、@nonsuperおよびタグなしでシナリオを実行することを意味します@unimplemented

タグの組み合わせの詳細については、Cucumber wiki のタグ部分を参照してください。

于 2013-07-15T12:56:59.547 に答える