The tool for executing test cases based on pytest framework
The main goal of the project that there is no need to install any python dependencies to use it. Only one file test-suites
is needed to be copied to local machine or remote server. The test-suites already contains all required libraries for writing test cases.
package | version | url |
---|---|---|
pytest | 3.0.7 | |
argparse | 1.4.0 | |
plumbum | 1.6.2 | |
py | 1.4.31 | |
PyYAML | 3.12 |
Just copy test-suites binary from GitHub Releases to your local machine or remote machine where test cases shall executed
Please follow the instruction from pytest documentation how to write the test cases.http://doc.pytest.org/en/latest/contents.html
The simple example:
def test_example():
assert True
$ test-suites
==================================================================== test session starts =====================================================================
platform linux2 -- Python 2.7.12, pytest-3.0.7, py-1.4.31, pluggy-0.4.0
rootdir: /dev/github/test-suites, inifile:
collected 2 items
tests/test_example.py .
tests/test_yaml.py .
================================================================== 2 passed in 0.08 seconds ==================================================================
The command line interface for test-suites is the same as for pytest, http://doc.pytest.org/en/latest/usage.html
The package contains several components with own license
- pytest is Copyright Holger Krekel and others, 2004-2016. Distributed under the terms of the MIT license, pytest is free and open source software.
- argparse is (c) 2006-2009 Steven J. Bethard [email protected]. The argparse module was contributed to Python as of Python 2.7 and thus was licensed under the Python license. Same license applies to all files in the argparse package project.
- plumbum, is (c) Tomer Filiba [email protected], MIT license.
- py is (c) Holger Krekel and others, 2004-2015, MIT license
- pyyaml is Copyright Kirill Simonov, Distributed under the terms of the MIT license, YAML parser and emitter for Python