LoginSignup
5
7

More than 5 years have passed since last update.

Cucumberの実行時のタグ指定方法

Last updated at Posted at 2013-12-05

はじめに

  • cucumberのfeatureファイルにつけたタグを使った実行方法についてまとめてみた

実行方法

  • 1つのタグ@hogeが付いているシナリオのみを実行
$ cucumber --tags @hoge
  • @hogeまたは@fooが付いているシナリオを実行
$ cucumber --tags @hoge, @foo
  • @hogeかつ@fooが付いているシナリオを実行
$ cucumber --tags @hoge --tags @foo
  • タグ@hogeが付いていないシナリオを実行
$ cucumber --tags ~@hoge

~ただの宣伝~

  • 全国のSeleniumer必読
  • Seleniumerといっていますが、Selenium, SauceLabs, Travis, Jenkinsに関するノウハウ書いているのでよかったら参考にしてみてください
5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7