def run_tests():
    """
    function to run doctest on all of HeartPy
    """
    from . import analysis, datautils, filtering, peakdetection, preprocessing, visualizeutils, config
    import doctest
    succeeded = 0
    print('testing config')
    results = doctest.testmod(config)
    if results.failed == 0:
        print('success!')
        succeeded += 1
    print('testing analysis')
    results = doctest.testmod(analysis)
    if results.failed == 0:
        print('success!')
        succeeded += 1
    print('testing datautils')
    results = doctest.testmod(datautils)
    if results.failed == 0:
        print('success!')
        succeeded += 1
    print('testing filtering')
    results = doctest.testmod(filtering)
    if results.failed == 0:
        print('success!')
        succeeded += 1
    print('testing peakdetection')
    results = doctest.testmod(peakdetection)
    if results.failed == 0:
        print('success!')
        succeeded += 1
    print('testing preprocessing')
    results = doctest.testmod(preprocessing)
    if results.failed == 0:
        print('success!')
        succeeded += 1
    print('testing visualization utils')
    results = doctest.testmod(visualizeutils)
    if results.failed == 0:
        print('success!')
        succeeded += 1
    print('testing main processing pipeline')
    from . import heartpy as hptester
    results = doctest.testmod(hptester)
    if results.failed == 0:
        print('success!')
        succeeded += 1
    if succeeded == 8:
        print('all tests passed, ready to go!')
    else:
        print('some tests failed...')
