anypytools.pytest_plugin#
Created on Mon Sep 1 12:44:36 2014.
@author: Morten
Module Contents#
Classes#
pytest.File subclass for AnyScript files. |
|
pytest.Item subclass representing individual collected tests. |
|
Class for storing configuation of the AnyTest plugin to pytest. |
API#
- class anypytools.pytest_plugin.AnyTestFile#
Bases:
pytest.Filepytest.File subclass for AnyScript files.
- collect()#
Yield test cases from a AnyScript test file.
- class anypytools.pytest_plugin.AnyTestItem(name, id, parent, any_defs, any_paths, **kwargs)#
Bases:
pytest.Itempytest.Item subclass representing individual collected tests.
Initialization
- runtest()#
Run an AnyScript test item.
- save_output_files(src_folder, target_folder, result, hdf5files)#
Saves hdf5, macro, and log files from a test run and copy it to the target_folder
- repr_failure(excinfo)#
Print a representation when a test failes.
- reportinfo()#
- exception anypytools.pytest_plugin.AnyException#
Bases:
ExceptionCustom exception for error reporting.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- class anypytools.pytest_plugin.AnyTestSession#
Bases:
objectClass for storing configuation of the AnyTest plugin to pytest.
Initialization
- configure(config)#
Configure the AnyTestSession object.
This can’t be in __init__() since it is instantiated and added to the pytest namespace very early in the pytest startup.