Skip to content
Snippets Groups Projects
Forked from empyre / empyre
428 commits behind the upstream repository.
  • Jan Caron's avatar
    f62f0ab4
    Completed the restructuring of the package · f62f0ab4
    Jan Caron authored
    scripts: changed scripts to work with the new syntax of the package
    PhaseMag and MagData: added load and save options for NetCDF files
    MagData: changed 3D-plotting to use mayavi (faster and better looking)
    test: added more TestCases for various modules
    phasemapper: added computation method to use mx and my (now standard)
    compare_method_errors: first draft of script to compare the different errors
    f62f0ab4
    History
    Completed the restructuring of the package
    Jan Caron authored
    scripts: changed scripts to work with the new syntax of the package
    PhaseMag and MagData: added load and save options for NetCDF files
    MagData: changed 3D-plotting to use mayavi (faster and better looking)
    test: added more TestCases for various modules
    phasemapper: added computation method to use mx and my (now standard)
    compare_method_errors: first draft of script to compare the different errors
run_tests.py 1.33 KiB
# -*- coding: utf-8 -*-
"""
Unittests for pyramid.
"""

import unittest
from test_compliance    import TestCaseCompliance
from test_magcreator    import TestCaseMagCreator
from test_magdata       import TestCaseMagData
from test_projector     import TestCaseProjector
from test_phasemapper   import TestCasePhaseMapper
from test_phasemap      import TestCasePhaseMap
from test_holoimage     import TestCaseHoloImage
from test_analytic      import TestCaseAnalytic
from test_reconstructor import TestCaseReconstructor


def run():
    
    suite  = unittest.TestSuite()
    loader = unittest.TestLoader()
    runner = unittest.TextTestRunner(verbosity=2)
    
    suite.addTest(loader.loadTestsFromTestCase(TestCaseCompliance))
    suite.addTest(loader.loadTestsFromTestCase(TestCaseMagCreator))
    suite.addTest(loader.loadTestsFromTestCase(TestCaseMagData))
    suite.addTest(loader.loadTestsFromTestCase(TestCaseProjector))
    suite.addTest(loader.loadTestsFromTestCase(TestCasePhaseMapper))
    suite.addTest(loader.loadTestsFromTestCase(TestCasePhaseMap))
    suite.addTest(loader.loadTestsFromTestCase(TestCaseHoloImage))
    suite.addTest(loader.loadTestsFromTestCase(TestCaseAnalytic))
    suite.addTest(loader.loadTestsFromTestCase(TestCaseReconstructor))
    runner.run(suite)


if __name__ == '__main__':
    run()