cwltest.plugin
Discovers CWL test files and converts them to pytest.Items.
Exceptions
custom exception for error reporting. |
Classes
Protocol to type-check test runner functions via the pluggy hook. |
|
A CWL test Item. |
|
A CWL test file. |
Functions
|
Add our options to the pytest command line. |
|
Is this file for us. |
|
Store the raw tests and the test results. |
|
Generate badges. |
|
Register our cwl hooks. |
Module Contents
- class cwltest.plugin.TestRunner
Bases:
Protocol
Protocol to type-check test runner functions via the pluggy hook.
- class cwltest.plugin.CWLItem(name, parent, spec)
Bases:
pytest.Item
A CWL test Item.
- spec
- runtest()
Execute using cwltest.
- Return type:
None
- repr_failure(excinfo, style=None)
Document failure reason.
Called when self.runtest() raises an exception.
- Parameters:
excinfo (pytest.ExceptionInfo[BaseException])
style (Optional[_pytest._code.code.TracebackStyle])
- Return type:
- class cwltest.plugin.CWLYamlFile(fspath=None, path_or_parent=None, path=None, name=None, parent=None, config=None, session=None, nodeid=None)
Bases:
pytest.File
A CWL test file.
- Parameters:
fspath (_pytest.compat.LEGACY_PATH | None)
path_or_parent (pathlib.Path | Node | None)
path (pathlib.Path | None)
name (str | None)
parent (Node | None)
config (_pytest.config.Config | None)
session (_pytest.main.Session | None)
nodeid (str | None)
- collect()
Load the cwltest file and yield parsed entries.
- Return type:
- cwltest.plugin.pytest_addoption(parser)
Add our options to the pytest command line.
- Parameters:
parser (pytest.Parser)
- Return type:
None
- cwltest.plugin.pytest_collect_file(file_path, parent)
Is this file for us.
- Parameters:
file_path (pathlib.Path)
parent (pytest.Collector)
- Return type:
pytest.Collector | None
- cwltest.plugin.pytest_configure(config)
Store the raw tests and the test results.
- Parameters:
config (pytest.Config)
- Return type:
None
- cwltest.plugin.pytest_sessionfinish(session)
Generate badges.
- Parameters:
session (pytest.Session)
- Return type:
None
- cwltest.plugin.pytest_addhooks(pluginmanager)
Register our cwl hooks.
- Parameters:
pluginmanager (pytest.PytestPluginManager)
- Return type:
None
