Skip to main content

Tool to cause tests to fail fast when the wrong environment is used to run them.

Project description

HitchEnvironment
================

HitchEnvironment is a plugin for the Hitch testing framework that lets you
describe your environment and verify that it correct.

It is supposed to provide some measure of safety for tests that might pass on,
for example, a 64 bit machine but fail on a 32 bit machine, by making
the environment a test runs on declared explicitly.

It is required by HitchServe_ to run, requiring you to specify your
environment.

Currently, it lets you describe the following:

* Platform (linux2, win32, cygwin, darwin, os2, os2emx, riscos, atheos)
* System bits (32 or 64)
* Access to internet (True or False)



Use with Hitch
==============

Install like so::

$ hitch install hitchenvironment


.. code-block:: python

>>> import hitchenvironment
>>> hitchenvironment.class_definition()
hitchenvironment.Environment(platform="linux2", systembits=64, requires_internet_access=True)

>>> hitchenvironment.Environment(platform="linux2", systembits=64, requires_internet_access=True).match()



See this plugin in action at the DjangoRemindMe_ project.


.. _HitchServe: https://github.com/hitchtest/hitchserve
.. _DjangoRemindmMe: https://github.com/hitchtest/django-remindme

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

hitchenvironment-0.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file hitchenvironment-0.1.tar.gz.

File metadata

File hashes

Hashes for hitchenvironment-0.1.tar.gz
Algorithm Hash digest
SHA256 88e9e29030277b53eb6b763ff1f4ffbd40d06234dff3ef94ab7518899b577cf6
MD5 e5280428c151ba27bb13ebf64ab068ee
BLAKE2b-256 f45625ba0bf88f4f25e37e74fcd670e4833aab21297cba5f0540c90a787bd173

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page