X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=README.md;fp=README.md;h=e4c75d9898828d8fe309af34fdea5cc17ec77316;hb=81e3575a77366f30c2049f98c48a3087db0ea992;hp=eb6900a16d9883f343e2f9f23eea62a12f1450ab;hpb=8339c9a882a586578b37f44a504e21c5208611c0;p=pti%2Fo2.git diff --git a/README.md b/README.md index eb6900a..e4c75d9 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,11 @@ docker-compose build ``` - -## Creating a local virtualenv (optional) - -```sh -python3.8 -m venv .venv && source .venv/bin/activate -pip install -r requirements.txt -pip install -e src/ -``` - ## Running the tests ```sh docker-compose up -d docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit /tests/integration -pytest tests/unit -pytest tests/integration -pytest tests/e2e ``` ## Tear down containers @@ -29,3 +17,16 @@ pytest tests/e2e ```sh docker-compose down --remove-orphans ``` + +## Test with local virtualenv + +```sh +python3.8 -m venv .venv && source .venv/bin/activate +pip install -r requirements.txt -c constraints.txt +pip install -r requirements-test.txt +pip install -e o2ims +# pip install -e o2dms -e o2common +pytest tests/unit +pytest tests/integration +pytest tests/e2e +```