0

我正在使用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. 

任何其他的想法将是有益的。

谢谢!

回答

1

我建议禁用Tddium的自动测试作图(即组:test_pattern为none)

:tddium: 
    :test_pattern: 'none' 

然后,可以手动调用通过测试:测试配置。

0

如果您从未运行当前分支的测试套件,Tddium将只会选取测试模式并使用它。如果您已经为当前分支配置了套件,最简单的解决方案是运行tddium suite --edit

+0

我已经运行了测试套件。我试过了你的建议,但并没有解决我的问题。它仍然尝试运行'script/cucumber features'。我已经用结果更新了我的问题。 – etagwerker