Skip to main content

Common workflow language testing framework

Project description

Linux Build Status Windows Build status Code coverage

Common workflow language testing framework

This is a testing tool for checking the output of Tools and Workflows described with the Common Workflow Language. Among other uses, it is used to run the CWL conformance tests.

This is written and tested for Python 2.7, 3.4, 3.5, 3.6, and 3.7

Install

Installing the official package from PyPi:

pip install cwltest

Or from source:

git clone https://github.com/common-workflow-language/cwltest.git
cd cwltest && python setup.py install

Run on the command line

Simple command:

cwltest --test test-descriptions.yml --tool cwl-runner

Generate conformance badges using cwltest

To make badges that show the results of the conformance test, you can generate JSON files for https://badgen.net by using –badgedir option

To generate JSON files:

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"
}

Once you upload JSON file to a server, you make a badge by using a link like https://flat.badgen.net/https/path/to/generated/json.

Here is an example of markdown to add a badge:

![test result](https://flat.badgen.net/https/path/to/generated/json)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cwltest-1.0.20190906212748.tar.gz (14.7 kB view details)

Uploaded Source

Built Distributions

cwltest-1.0.20190906212748-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

cwltest-1.0.20190906212748-py2-none-any.whl (19.8 kB view details)

Uploaded Python 2

File details

Details for the file cwltest-1.0.20190906212748.tar.gz.

File metadata

  • Download URL: cwltest-1.0.20190906212748.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.13

File hashes

Hashes for cwltest-1.0.20190906212748.tar.gz
Algorithm Hash digest
SHA256 7f8f7a6890ce9e43fc3e564bc7793f146145d518e07f0d9a82064e8d6fb7b4b5
MD5 bad62c36d5f87e586065588c34e03e5d
BLAKE2b-256 c0f771ca6de1cfb62a2863a544d2f45cf86858087d38f51647862fc1ee1e0d12

See more details on using hashes here.

File details

Details for the file cwltest-1.0.20190906212748-py3-none-any.whl.

File metadata

  • Download URL: cwltest-1.0.20190906212748-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.13

File hashes

Hashes for cwltest-1.0.20190906212748-py3-none-any.whl
Algorithm Hash digest
SHA256 b13e4b2168f4fa5da655d3b198556cee5e5209d032dc43e17e7fd60d8e4f2eb6
MD5 c1d450a6568a1abda417e7e4442b8eea
BLAKE2b-256 eacf39ce9029ba67dd9963828ff53d9231da6ad9fbaac45d0d32989df5ea5709

See more details on using hashes here.

File details

Details for the file cwltest-1.0.20190906212748-py2-none-any.whl.

File metadata

  • Download URL: cwltest-1.0.20190906212748-py2-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.13

File hashes

Hashes for cwltest-1.0.20190906212748-py2-none-any.whl
Algorithm Hash digest
SHA256 fea35739b2a77784baf1774550de33e210591024d06e4543fe5dc73a969ddb18
MD5 15d8c03e9a63e9286709e1582b8362b3
BLAKE2b-256 506cd07431aadcda9823132163025723ab03f3ef9923f06ae58a2edaf1e3f915

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page