1. Victor Stinner
  2. hachoir

Wiki

Clone wiki

hachoir / QualityControl

Documentation

Source of the documentation: source:trunk/hachoir-core/doc/ (most up to date)

Tests

There are many tests in Hachoir to check non-regression:

  • hachoir_core/test_doc.py
  • hachoir_regex/test_doc.py
  • hachoir_parser/tests/run_testcase.py
  • hachoir_metadata/test_doc.py
  • hachoir_metadata/run_testcase.py

The script test_code.sh run alls tests.

run_testcase.py requires Hachoir testcase.

Coverage

Use [[source:trunk/coverage_test.sh|coverage_test.sh]] (use [[source:trunk/coverage_test.py|coverage_test.py]]).

You will need patched version of doctest module: use zope.testing or see patch for doctest.py.

Performance testing

See: optimization.

Coding style

See: CodingStyle

Python checkers

Some tools are used to check common errors:

See also:

Updated