我正在使用TDDium来连续运行我的测试。如何阻止TDDium自动运行脚本/黄瓜功能
每当我把东西它运行使用我tddium.yml
配置文件:
:tddium:
:timeout: 90
:postgresql: false
:test_pattern:
- spec/**_spec.rb
:mysql:
:adapter: mysql2
:config:
:adapter: mysql2
:database: <%= ENV['TDDIUM_DB_NAME'] %>
:username: <%= ENV['TDDIUM_DB_USER'] %>
:password: <%= ENV['TDDIUM_DB_PASSWORD'] %>
:database: <%= ENV['TDDIUM_DB_NAME'] %>
正如你所看到的,我指定:test_pattern:
。
即使我在我的features
目录中有一组.feature
文件,我不希望它自动运行它们。
如何停止TDDium
这样做?
我认为,通过指定:test_pattern:
而不包括.feature
模式,它会跳过它们。
我试着运行tddium suite --edit
,这是发生了什么事:
bonsai-2 project$ tddium suite --edit
... Detected ruby ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin11.4.2]
... Detected bundle Bundler version 1.3.5
... Detected gem 1.8.24
... Configured test pattern from tddium.yml:
- spec/**_spec.rb
>>> To change the pattern:
1. Edit tddium.yml
2. Run `tddium suite --edit` again.
>>> To set up Hosted CI, enter a git URL to pull from.
You can also set a git URL to push to after tests pass.
>>> Set both pull and push URLs to 'disable' to disable hosted CI completely.
Enter git URL to pull from (default 'ssh://[email protected]/etagwerker/project.git') or enter 'disable':
Enter git URL to push to (default '') or enter 'disable': disable
Custom Campfire room for this suite (current: '') or enter 'disable': disable
Custom HipChat room for this suite (current: '') or enter 'disable': At Work
Updated suite successfully.
任何其他的想法将是有益的。
谢谢!
我已经运行了测试套件。我试过了你的建议,但并没有解决我的问题。它仍然尝试运行'script/cucumber features'。我已经用结果更新了我的问题。 – etagwerker