X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2Fdeveloper-guide.rst;fp=docs%2Fdeveloper-guide.rst;h=06f01b755ca901bee80717fb675e3c544baa24b6;hb=bbc9028aa34ae48e7806596cd05fbe7a5bfd7fb8;hp=85a3cfd0946fb08766ae10dfc6f98df32b12aa2a;hpb=df048193df5fc166961a01d8fc8a2248a649ba53;p=ric-plt%2Fxapp-frame-py.git diff --git a/docs/developer-guide.rst b/docs/developer-guide.rst index 85a3cfd..06f01b7 100644 --- a/docs/developer-guide.rst +++ b/docs/developer-guide.rst @@ -4,34 +4,56 @@ Developer Guide =============== -.. contents:: - :depth: 3 - :local: +Tech Stack +---------- + +The framework requires Python version 3.7 or later, and depends on +these packages provided by the O-RAN-SC project and third parties: + +* msgpack +* mdclogpy +* ricsdl + Version bumping the framework ----------------------------- This project follows semver. When changes are made, the versions are in: -1) ``docs/release-notes.rst`` - -2) ``setup.py`` +#. ``docs/release-notes.rst`` +#. ``setup.py`` Version bumping RMR ------------------- -These items in this repo must be kept in sync: -* Dockerfile-Unit-Test -* examples/Dockerfile-Ping -* examples/Dockerfile-Pong -* ``rmr-version.yaml`` controls what rmr gets installed for unit testing in Jenkins +These items in this repo must be kept in sync with the RMR version: + +#. Dockerfile-Unit-Test +#. examples/Dockerfile-Ping +#. examples/Dockerfile-Pong +#. ``rmr-version.yaml`` controls what version of RMR is installed for + unit testing in Jenkins CI Unit Testing ------------ -You can run the unit tests in Docker to avoid installing RMR locally: +Running the unit tests requires the python packages ``tox`` and ``pytest``. + +The RMR library is also required during unit tests. If running directly from tox +(outside a Docker container), install RMR according to its instructions. + +Upon completion, view the test coverage like this: + +:: + + tox + open htmlcov/index.html + +Alternatively, if you cannot install RMR locally, you can run the unit +tests in Docker. This is somewhat less nice because you don't get the +pretty HTML report on coverage. :: - docker build -f Dockerfile-Unit-Test . + docker build --no-cache -f Dockerfile-Unit-Test .