Closed aladinoster closed 3 years ago
This PR works on the architecture and closes #61
As a reference this is the actual test coverage of the app
tests/parser/test_xmlreader.py::test_getnetwork tests/parser/test_xmlreader.py::test_getlinkattributes /workspaces/symupy/symupy/utils/exceptions.py:72: UserWarning: Parameter CARREFOURAFEUX not found warnings.warn(warning_message) tests/utils/test_exceptions.py::test_symupywarning /workspaces/symupy/symupy/utils/exceptions.py:72: UserWarning: Test Warning warnings.warn(warning_message) -- Docs: https://docs.pytest.org/en/stable/warnings.html ----------- coverage: platform linux, python 3.9.1-final-0 ----------- Name Stmts Miss Cover --------------------------------------------------------------- symupy/__init__.py 5 0 100% symupy/abstractions/__init__.py 3 0 100% symupy/abstractions/command.py 8 0 100% symupy/abstractions/observer.py 10 2 80% symupy/abstractions/subject.py 17 3 82% symupy/cli/__init__.py 1 1 0% symupy/cli/analyze.py 0 0 100% symupy/cli/cli.py 19 19 0% symupy/cli/launch.py 0 0 100% symupy/parser/__init__.py 0 0 100% symupy/parser/xmlparser.py 77 11 86% symupy/parser/xmlreader.py 112 43 62% symupy/postprocess/__init__.py 0 0 100% symupy/postprocess/analyse.py 0 0 100% symupy/preprocess/__init__.py 0 0 100% symupy/preprocess/analyse.py 0 0 100% symupy/renderer/__init__.py 0 0 100% symupy/renderer/network.py 48 48 0% symupy/runtime/__init__.py 1 0 100% symupy/runtime/api/__init__.py 2 0 100% symupy/runtime/api/commands/__init__.py 1 0 100% symupy/runtime/api/commands/nocommand.py 6 0 100% symupy/runtime/api/connector.py 211 66 69% symupy/runtime/api/scenario.py 67 15 78% symupy/runtime/logic/__init__.py 1 0 100% symupy/runtime/logic/base.py 7 3 57% symupy/runtime/logic/publisher.py 22 2 91% symupy/runtime/logic/runtime.py 17 0 100% symupy/runtime/logic/sorted_frozen_set.py 54 25 54% symupy/runtime/logic/states.py 46 18 61% symupy/runtime/logic/subscriber.py 13 0 100% symupy/tsc/__init__.py 0 0 100% symupy/tsc/dynamics.py 29 15 48% symupy/tsc/network.py 92 19 79% symupy/tsc/ve2xnetworks.py 23 23 0% symupy/tsc/vehicle_control.py 42 42 0% symupy/tsc/vehicles.py 74 13 82% symupy/utils/__init__.py 3 0 100% symupy/utils/configurator.py 22 4 82% symupy/utils/constants.py 64 18 72% symupy/utils/exceptions.py 51 5 90% symupy/utils/parser.py 103 6 94% symupy/utils/screen.py 24 24 0% symupy/utils/tools.py 25 7 72% symupy/utils/xmlgenerator.py 47 47 0% --------------------------------------------------------------- TOTAL 1347 479 64%
That's good for me too
Code architecture
This PR works on the architecture and closes #61
Current coverage
As a reference this is the actual test coverage of the app