通用工作流语言测试框架
cwltest的Python项目详细描述
通用工作流语言测试框架
这是一个测试工具,用于检查所描述的工具和工作流的输出 使用通用工作流语言。除其他用途外,它还用于运行CWL 一致性测试。
这是针对python 2.7、3.4、3.5、3.6和3.7编写和测试的
安装
从pypi安装官方软件包:
pip install cwltest
或来源:
git clone https://github.com/common-workflow-language/cwltest.git cd cwltest && python setup.py install
在命令行上运行
简单命令:
cwltest --test test-descriptions.yml --tool cwl-runner
使用cwltest
生成一致性徽章制作显示一致性测试结果的徽章, 您可以使用–badgedir选项为https://badgen.net生成json文件
生成json文件:
cwltest --test test-descriptions.yml --tool cwl-runner --badgedir badges ... $ cat badges/command_line_tool.json | jq . { "subject": "[CWL] command_line_tool", "status": "100%", "color": "green" }
一旦将json文件上传到服务器,就可以使用类似https://flat.badgen.net/https/path/to/generated/json的链接制作徽章。
下面是添加徽章的标记示例:
![test result](https://flat.badgen.net/https/path/to/generated/json)