Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add makefile runner for tests #29

Merged
merged 3 commits into from Jan 13, 2020
Commits on Jan 12, 2020
  1. Create a requirements-test.txt; update the tests to work on Python 2.

    gerph committed Jan 11, 2020
    The requirements-test.txt file describes what the tests need in order
    to run. That's distinct from the requirements to install - and it's
    needed because the unittest.mock interface isn't present on Python 2.7,
    so we need to use a backport.
    
    This module is then used conditionally in the two tests we currently
    have, so that we can run in either version.
    
    The test classes have also had comments added to describe what they're
    trying to test and the invariants they assume.
  2. Ensure that test_crash checks the file and cleans up after itself.

    gerph committed Jan 11, 2020
    The test for a crash now checks that the file was actually created
    and that we clean that file up afterward, so that we don't affect
    other runs.
  3. Add a Makefile to allow testing of the existing code.

    gerph committed Jan 11, 2020
    A small makefile allows the invocation of the test modules, so that
    we can exercise the system and make sure that it does sensible things
    when it's run - or at least that it doesn't regress.
You can’t perform that action at this time.