Open
Description
List of test files to be added (one for each module):
- test_sdof.py
- test_mdof.py
- test_sdof.py
- test_continuous_systems.py
- test_ema.py
- test_vibesystem.py
@josephcslater I saw your commits and comments regarding implementing unit tests instead of having only doctests. I totally agree that we should do that.
I think it would be a good idea to split the tests between files that will test each module (test_sdof.py, test_mdof.py...) to avoid having lots of tests in only one file.
I was taking a look at the travis build history. I saw the following error when you tried to add the test file:
______ ERROR collecting vibration_toolbox/tests/test_vibration_toolbox.py ______
ImportError while importing test module '/home/travis/build/vibrationtoolbox/vibration_toolbox/vibration_toolbox/tests/test_vibration_toolbox.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
vibration_toolbox/tests/test_vibration_toolbox.py:3: in <module>
import vibrationtesting as vt
E ModuleNotFoundError: No module named 'vibrationtesting'
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 2 error in 1.81 seconds ============================
Was this vibrationtesting module added to the commit? I could not find it.
The tests were failing on your local machine?