使用 Tavern 并尝试针对此 yaml 运行 tavern-ci:
test_name: tavern poc
- name: list
request:
url: https://xxx.xxx.xxx.us/api/v3/institutions/
method: GET
response:
status_code: 200
headers:
content-type: application/json
save:
body:
content: content
Run Code Online (Sandbox Code Playgroud)
我收到 E ScannerError: 此处不允许映射值 E 在“/Users/xxx/xxx/xxx/test_poc.tavern.yaml”,第 3 行,第 9 列
已经尝试了这里提供的许多解决方案(其中大多数是“在冒号后加一个空格”),但没有任何乐趣。
Yamllint 给出了同样的错误......
是否有一个选项可以在 cli 输出中列出取消选择的测试以及触发取消选择的标记?
我知道,在有许多测试的套件中,这作为默认值并不好,但在 api 测试之类的测试可能会受到更多限制的情况下,这将是一个有用的选项。
数字摘要
collected 21 items / 16 deselected / 5 selected
Run Code Online (Sandbox Code Playgroud)
在尝试组织标记并查看 ci 构建中发生的情况时很有帮助,但还不够。