Skip to main content

The ‘epyunit’ package provides extensions of the PyUnit framework for unit and regression tests of executables written in arbitrary languages. In distinction to some more comprising and though complex frameworks the ‘epyunit’ provides a minimal but sufficient approach in particular for the low-effort test automation of scripts and tools.

The reuse of the standard PyUnit in combination with PyDev provides out-of-the-box integration into the Eclipse-IDE. Thus command line based regression tests as well as a graphical frontend for test statistics provided by PyDev could be applied.

The epyunit components call the wrapped process and read the execution results from STDOUT, STDERR, and the exit value. The values are read into Python variables either for further processing, or optional pass-through to the caller.

The ‘epyunit’ package provides in particular:

  • Support for unit tests of shell scripts - bash - from command line and Eclipse/PyDev

  • The simplified reuse of executables as test-dummies within multiple test cases.

  • The categorization of structures defined by the directory tree.

  • The support of arbitrary intermixed implementation languages for executables.

The implementation supports Python(>=2.7) and integrates into the Eclipse IDE with PyDev, and PyUnit.

The package ‘epyunit’ is a spin off from the project ‘UnifiedSessionsManager-2.0’.

The main interface classes are:

  • FileSysObjectsMin - A subset of the project PyFileSysObjects.

  • SystemCalls - Adaptation of sub-process calls for unit tests.

The architecture is based on the packages ‘PyDev’:

                +-----------------------+   call    +----------------------+
                |                       |  ------>  |                      |
Subprocess      |        ePyUnit        |           |   Wrapped-Process    |
                |                       |  <-----   |                      |
                +-----------------------+   stdin   +----------------------+
                            |               stderr
                            V               exit
                +-----------------------+
Python Units    |         PyUnit        |
                +-----------------------+
                            |
                            V
                +-----------+-----------+
IDE             |  Eclipse  |    CLI    |
                +-----------+-----------+

For examples and patterns see subdirectories:

  • UseCases

  • tests

Downloads:

Online documentation:

setup.py

The installer adds a few options to the standard setuptools options.

  • build_sphinx: Creates documentation for runtime system by Sphinx, html only. Calls ‘callDocSphinx.sh’.

  • build_epydoc: Creates documentation for runtime system by Epydoc, html only. Calls ‘callDocEpydoc.sh’.

  • test: Runs PyUnit tests by discovery.

  • –help-epyunit: Displays this help.

  • –no-install-required: Suppresses installation dependency checks, requires appropriate PYTHONPATH.

  • –offline: Sets online dependencies to offline, or ignores online dependencies.

  • –exit: Exit ‘setup.py’.

After successful installation the ‘selftest’ verifies basic checks by:

epyunit –selftest

with the exit value ‘0’ when OK.

The option ‘-v’ raises the degree of verbosity for inspection

epyunit –selftest -v -v -v -v

Project Data

  • PROJECT: ‘epyunit’

  • MISSION: Extend the standard PyUnit package for arbitrary ExecUnits.

  • VERSION: 00.00

  • RELEASE: 00.00

  • NICKNAME: ‘Dromi’

  • STATUS: pre-alpha

  • AUTHOR: Arno-Can Uestuensoez

  • COPYRIGHT: Copyright (C) 2010,2011,2015-2016 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez

  • LICENSE: Artistic-License-2.0 + Forced-Fairplay-Constraints Refer to enclose documents:

    • ArtisticLicense20.html - for base license: Artistic-License-2.0

    • licenses-amendments.txt - for amendments: Forced-Fairplay-Constraints

VERSIONS and RELEASES

Planned Releases:

  • RELEASE: 00.00.00x - Pre-Alpha: Extraction of the features from hard-coded application into a reusable package.

  • RELEASE: 00.01.00x - Alpha: Completion of basic features.

  • RELEASE: 00.02.00x - Alpha: Completion of features, stable interface.

  • RELEASE: 00.03.00x - Beta: Accomplish test cases for medium to high complexity.

  • RELEASE: 00.04.00x - Production: First production release. Estimated number of UnitTests := 100.

  • RELEASE: 00.05.00x - Production: Various performance enhancements.

Current Release: 00.00.010 - Pre-Alpha:

Major Changes:

  • Splitted by shift of FileSzsObjects into it’s own project.

  • Test enhancements.

  • Documentation restructured.

Current test status:

  • UnitTests: >9

  • Use-Cases as UnitTests: >84

Total: >93

nn

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

epyunit-0.0.10.tar.gz (57.2 kB view details)

Uploaded Source

epyunit-0.0.10-1.src.rpm (67.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

epyunit-0.0.10.linux-x86_64.tar.gz (19.5 kB view details)

Uploaded Source

epyunit-0.0.10-1.noarch.rpm (27.8 kB view details)

Uploaded Source

File details

Details for the file epyunit-0.0.10.tar.gz.

File metadata

  • Download URL: epyunit-0.0.10.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for epyunit-0.0.10.tar.gz
Algorithm Hash digest
SHA256 e6ec6f18487fd024951dca0970c2388743caa697888af24841124367a77ea750
MD5 d05646d9d23d0b22383fd2670b601a8e
BLAKE2b-256 16fe3849752d6b836f02d06a73a2b334ef3139c991fab94a2cbd55f456ee5e0e

See more details on using hashes here.

File details

Details for the file epyunit-0.0.10-1.src.rpm.

File metadata

  • Download URL: epyunit-0.0.10-1.src.rpm
  • Upload date:
  • Size: 67.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for epyunit-0.0.10-1.src.rpm
Algorithm Hash digest
SHA256 4c90abc9b8ced19d557acb3986a8bef52e39765ad34329810fe1df1541e5c8ed
MD5 145c27e3995ac93a165455348aec2206
BLAKE2b-256 f79259ab6e1dbe90b69602a0193534fdc3b23f921d4d4f8619538b038c008b64

See more details on using hashes here.

File details

Details for the file epyunit-0.0.10.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for epyunit-0.0.10.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 cf42326ab9c61580bd66e61ad9d3736eaa7085c5f6650a73c9a2c93f3fdb566f
MD5 23a2041e595220b0fe0298b536754070
BLAKE2b-256 2c38b727cac8d48a4ad96c4daf823b45308ab44e9f13e24365a3e7a89c4b23dd

See more details on using hashes here.

File details

Details for the file epyunit-0.0.10-1.noarch.rpm.

File metadata

File hashes

Hashes for epyunit-0.0.10-1.noarch.rpm
Algorithm Hash digest
SHA256 fc83c0e5c161a82241d7b01209c154ccc24621835b3e2fb55cefd644faabfd5b
MD5 06d79e1a2a96c37c945b92789cbb6293
BLAKE2b-256 62f3bcef91cbb0a7381e736f43ef11ba91f0f2bc3a9e92af75e5d6d7d5f9b81e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.12

4 files

0.2.11

5 files

0.2.10

5 files

0.2.9

4 files

0.2.8

5 files

0.2.7

5 files

0.2.6

5 files

0.2.5

5 files

0.2.0

5 files

0.1.14

5 files

0.1.13

3 files

0.1.12

5 files

0.1.11

4 files

0.1.10

5 files

0.1.9

5 files

0.1.8

5 files

0.1.7

5 files

This release

0.0.10 This release

4 files

0.0.1

4 files

0.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page