Skip to main content

zerobug 2.0.20

License: AGPL-3

Overview

This library can run unit test of software target package. Supported languages are python (through z0testlib.py) and bash (through z0testrc)

zerobug was born to supports test automation, aggregation of tests into collections and independence of the tests from the reporting framework. Currently is becoming an improvements of python unittest2 but still run bash tests.

The command zerobug of this package runs tests: it searches for test runner files named test_ (see -p switch).

Test suite is a collection of test case named test_[0-9]+ inside the runner file, executed in sorted order.

Every suite can contains one or more test case, the smallest unit test; every unit test terminates with success or with failure.

zerobug is full integrated with coverage and travis-ci.

Features

  • Autodiscovery test modules and functions

  • Python 2.7+ and 3.5+

  • coverage integration

  • travis-ci integration

Usage

usage: zerobug [-h] [-B] [-C] [-e] [-f] [-J] [-k] [-l file] [-N] [-n] [-O]
               [-p file_list] [-Q] [-q] [-R] [-r number] [-s number] [-V] [-v]
               [-x] [-X] [-z number] [-0]

Regression test on zerobug

options:
  -h, --help            show this help message and exit
  -B, --debug           run tests in debug mode
  -C, --no-coverage     run tests without coverage
  -e, --echo            enable echoing even if not interactive tty
                        (deprecated)
  -f, --failfast        Stop on first fail or error
  -J                    load travisrc (deprecated)
  -k, --keep            keep current logfile (deprecated)
  -l file, --logname file
                        set logfile name (deprecated)
  -N, --new             create new logfile (deprecated)
  -n, --dry-run         count and display # unit tests (deprecated)
  -O                    load odoorc (deprecated)
  -p file_list, --search-pattern file_list
                        Pattern to match tests, comma separated ('test*.py'
                        default)
  -Q, --count           count # unit tests (deprecated)
  -q, --quiet           run tests without output (quiet mode, deprecated)
  -R, --run-inner       inner mode w/o final messages
  -r number, --restart number
                        restart count next to number
  -s number, --start number
                        deprecated
  -V, --version         show program's version number and exit
  -v, --verbose         verbose mode
  -x, --qsanity         like -X but run silently (deprecated)
  -X, --esanity         execute test library sanity check and exit
                        (deprecated)
  -z number, --end number
                        display total # tests when execute them
  -0, --no-count        no count # unit tests (deprecated)

© 2015-2025 by SHS-AV s.r.l. - https://zeroincombenze-
tools.readthedocs.io/en/latest/zerobug

Getting started

Prerequisites

Zeroincombenze(R) tools requires:

  • Linux Centos 7/8 or Debian 9/10/11 or Ubuntu 16/18/20/22/24

  • python 2.7+, some tools require python 3.7+, best python 3.9+

  • bash 5.0+

Installation

Stable version via Python Package

pip install zerobug

Current version via Git

cd $HOME
[[ ! -d ./tools ]] && git clone https://github.com/zeroincombenze/tools.git
cd ./tools
./install_tools.sh -pUT
source $HOME/devel/activate_tools

Upgrade

Stable version via Python Package

pip install --upgrade zerobug

Current version via Git

cd ./tools
./install_tools.sh -pUT
source $HOME/devel/activate_tools

ChangeLog History

2.0.20 (2025-09-09)

  • [IMP] Refactoring

  • [FIX] License declaration compatible with pypi

2.0.19 (2025-03-14)

  • [IMP] create_repo, parameter ctx deprecated

  • [IMP] create_module, parameter ctx deprecated

2.0.18 (2025-03-14)

  • [IMP] flake8 configuration

  • [IMP] pylint configuration

  • [IMP] travis_run_pypi_tests searches for virtual environment

  • [IMP] build_odoo_env, parameter ctx deprecated

  • [IMP] Some function now are move in z0lib>=2.0.12

  • [IMP] build_odoo_env does not require ctx

  • [IMP] Python 3.6 deprecated

  • [IMP] pylint configuration files

2.0.17 (2024-07-07)

  • [FIX] z0testlib: no more depends on os0

  • [IMP] Python 3.6 deprecated

2.0.16 (2024-05-14)

  • [FIX] z0testlib: no crash without coverage


  • [FIX] build_cmd: command not in scripts directory

2.0.14 (2024-01-31)

  • [IMP] build_cmd: enable coverage on sub process

  • [FIX] Re-enable coverage statistics

  • [FIX] Printing message: right sequence

2.0.13 (2023-12-21)

  • [FIX] python2: argument signature

  • [IMP] build_os_tree: compatible with unittest2

  • [IMP] remove_os_tree: compatible with unittest2

2.0.12 (2023-11-27)

[FIX] python2: has_args

2.0.11 (2023-11-19)

  • [IMP] Disabled sanity_check

  • [IMP] Disabled some deprecated switches

  • [FIX] Coverage data file

  • [IMP] zerobug: test function signature like unittest2

  • [IMP] zerobug: no more execution for count

2.0.10 (2023-11-10)

  • [REF] Partial refactoring

  • [IMP] New functions assert* like unittest2

  • [IMP] New switch -f failfast

  • [IMP] Test signature like unittest2 and old zerobug signature

  • [IMP] Test flow without return status (like unitest2)

2.0.9 (2023-07-12)

  • [IMP] zerobug implementation with unittest

  • [FIX] z0testlib.py: build_odoo_env, odoo-bin / openerp-server are executable

  • [FIX] z0testlib.py: minor fixes

2.0.7 (2023-05-14)

  • [IMP] travis_run_pypi_tests: new switch -p PATTERN

2.0.6 (2023-05-08)

  • [IMP] Now all_tests is ignored

  • [IMP] Build Odoo environment for Odoo 16.0

2.0.5 (2023-03-24)

  • [FIX] travis_install_env: ensure list_requirements is executable

  • [IMP] flake8 configuration

  • [IMP] coveralls and codecov are not more dependencies

  • [IMP] Test for Odoo 16.0

2.0.4 (2022-12-08)

  • [FIX] run_pypi_test: best recognition of python version

  • [FIX] build_cmd: best recognition of python version

  • [FIX] travis_install_env: ensure coverage version

  • [IMP] odoo environment to test more precise

2.0.3 (2022-11-08)

  • [IMP] npm management

2.0.2.1 (2022-10-31)

  • [FIX] Odoo 11.0+

  • [FIX] Ensure coverage 5.0+

2.0.2 (2022-10-20)

  • [IMP] Stable version

2.0.1.1 (2022-10-12)

  • [IMP] minor improvements

2.0.1 (2022-10-12)

  • [IMP] stable version

2.0.0.2 (2022-10-05)

  • [IMP] travis_install_env: python2 tests

Credits

Authors

Contributors



Metadata

Release files for zerobug 2.0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zerobug 2.0.20
File Size Uploaded Provenance Actions
zerobug-2.0.20.tar.gz 106.6 kB Without provenance Details for zerobug-2.0.20.tar.gz

Release files / zerobug-2.0.20.tar.gz

Download URL zerobug-2.0.20.tar.gz
Size 106.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9a8f7c547922ab59d29a2d062dd86a7d1276dd7f6219393127f07a4a6f452a80
BLAKE2b-256 checksum
How to use checksums
96df9a088b26b0b8b32ac35a48af384a6f80e240db37ad3d184eb85a362a36d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.13

Security for zerobug 2.0.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.20 This release

1 release file No provenance

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