Console app and Python API for automated smoke testing
Project description
About
Console app and Python API for automated smoke testing, preconfigured to make coursework easier for our ACS students.
Installation
To install smoke_test run:
$ pip install smoke_test
Console app usage
Quick start:
$ smoke_test <filename>
Show help:
$ smoke_test --help
Python API usage
Quick start:
>>> import logging >>> logging.basicConfig(level=logging.DEBUG, format="[%(levelname)s] %(message)s") >>> import os >>> os.chdir('examples/file') >>> from smoke_test.main import smoke_test >>> from smoke_test.utils import get_test_stats >>> results = smoke_test('program-error-bad-function-calls-count.c') >>> num_ok, num_failed, success_rate = get_test_stats(results) >>> logging.info("Test stats: ok = %d, failed = %d, success rate = %d %%", num_ok, num_failed, success_rate)
Contribute
If you find any bugs, or wish to propose new features please let us know.
If you’d like to contribute, simply fork the repository, commit your changes and send a pull request. Make sure you add yourself to AUTHORS.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smoke_test-1.0.2.tar.gz
(8.2 kB
view hashes)
Built Distribution
smoke_test-1.0.2-py2-none-any.whl
(12.1 kB
view hashes)
Close
Hashes for smoke_test-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a73c3a86561de7f9905952ee05559ac285912ce2e0edbfd925042524eabc592 |
|
MD5 | 730ffa3d37c1cb53b0770bc0afcf4ec7 |
|
BLAKE2b-256 | f8de97bb7795fa688ada851b576c614046882567ed1269f3b37779d08560564a |