These unit tests depend on mvn and actually run it, which makes them not-so-unit-tests.
These tests require mvn executable:
- test/metrics/npath/test_all_types.py::JavaTestCase::testHighScore
- test/metrics/npath/test_all_types.py::JavaTestCase::testIncorrectFormat
- test/metrics/npath/test_all_types.py::JavaTestCase::testLowScore
- test/metrics/npath/test_all_types.py::JavaTestCase::testMediumScore
One may consider using mocking out subprocess for these tests.
There is pytest-subprocess plugin, which allows one to do it quite smoothly.
https://pypi.org/project/pytest-subprocess/
This will require switching to pytest, though.
Related PR: #701
These unit tests depend on
mvnand actually run it, which makes them not-so-unit-tests.These tests require
mvnexecutable:One may consider using mocking out
subprocessfor these tests.There is
pytest-subprocessplugin, which allows one to do it quite smoothly.https://pypi.org/project/pytest-subprocess/
This will require switching to
pytest, though.Related PR: #701