HILSTER Testing Framework

Welcome to the HILSTER Testing Framework documentation.

HILSTER Testing Framework is a professional Python Testing Framework with a strong focus on reporting, industrial applications and functional safety.

Installation

htf is installed via pip:

pip install -i https://pypi.hilster.de htf-community==2.0.0rc0

You might also be interested in the community license.

Getting Started

To get started, take a look at the installation instructions, the introduction and how to write tests, about fixtures and available test reports.

Learn how to run tests from the command line and Python scripts.

If you prefer a more guided introduction take a look at the HILSTER Testing Framework Demonstrator.

Example

import htf

def test_example(step, assertions, attachments, threads):
   with step("Tests can be structured with steps"):
      assertions.assert_true(True, "This step succeeds")

      with step("Attach a file if the outer step succeeds"):
         attachments.attach_file("graph.png", "Important graph")

   with step("Run something in the background"):
      def tick():
         while True:
            print('tick')
      threads.run_background(tick)


if __name__ == "__main__":
   htf.main()

Contact

If you have any questions or ideas, please don’t hesitate and e-mail us via support@hilster.de.

Documentation