Skip to main content

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.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

smoke_test-1.1.0-py2-none-any.whl (12.2 kB view details)

Uploaded Python 2

File details

Details for the file smoke_test-1.1.0.tar.gz.

File metadata

  • Download URL: smoke_test-1.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for smoke_test-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a6c789580c2e7e1dda4fcd974c16fcd3416f57c11b06bafb0ea16700a7898e3a
MD5 a38ae12c34cf8b740df894800ca7c36d
BLAKE2b-256 48288946d79fe5b227cc5191b4ca9f4c22ee856ae8449e14120f5be895deaba7

See more details on using hashes here.

File details

Details for the file smoke_test-1.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for smoke_test-1.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 95e3aa7c975cc612eb8b8acb1f1316992e4176bd3330ac339016e634d94c2304
MD5 9e03013c643c8b382d6e8249823ead98
BLAKE2b-256 51213bb0fddd3ff414cd8370d56ac61f7f106660ecd8c0544b13dad78daf417b

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