mechboxes / mech

Easy command line virtual machines for VMWare
https://mechboxes.github.io/mech/
MIT License
311 stars 49 forks source link

Add tests #12

Open ColdHeat opened 7 years ago

mkinney commented 4 years ago

Added unit and integration tests in https://github.com/mechboxes/mech/pull/71

mkinney commented 4 years ago
mikekinney@sweet mkinney_mech % pytest --cov mech
================================================== test session starts ===================================================
platform darwin -- Python 3.7.6, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
rootdir: /Users/mikekinney/python/mkinney_mech, inifile: pytest.ini
plugins: mock-2.0.0, xdist-1.31.0, forked-1.1.3, cov-2.8.1
gw0 [118] / gw1 [118] / gw2 [118] / gw3 [118]
.................................................................................................................. [ 96%]
....                                                                                                               [100%]Coverage.py warning: No data was collected. (no-data-collected)

---------- coverage: platform darwin, python 3.7.6-final-0 -----------
Name                         Stmts   Miss  Cover
------------------------------------------------
mech/__init__.py                 3      0   100%
mech/__main__.py                13     13     0%
mech/command.py                 52     30    42%
mech/compat.py                  29     10    66%
mech/conftest.py                30      0   100%
mech/mech.py                   537     15    97%
mech/test_mech.py              874      0   100%
mech/test_mech_box.py           84      0   100%
mech/test_mech_int.py           26     16    38%
mech/test_mech_snapshot.py     152      0   100%
mech/test_utils.py             243      0   100%
mech/utils.py                  452    142    69%
mech/vmrun.py                  240    120    50%
------------------------------------------------
TOTAL                         2735    346    87%

================================================== 118 passed in 1.79s =====