从多个食谱运行厨房测试

时间:2016-04-05 09:33:50

标签: chef

我试图使用一个kitchen.yml文件从不同的食谱中运行测试,但似乎正在发生的是它只是运行食谱而不是测试。有没有办法实现这个目标?

1 个答案:

答案 0 :(得分:1)

确保测试的文件夹与套件的名称相匹配。如果你有这样的.kitchen.yml

platforms:
- name: ubuntu-12.04
- name: ubuntu-14.04

suites:
- name: default
  run_list:
  - recipe[foo]
  - recipe[baz]
- name: other
  run_list:
  - recipe[bar]

然后,测试将分别位于test/integration/default/test/integration/other/下。

相关问题