Adding more depencies for tm ci process 63/9763/1
authorSANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Wed, 23 Nov 2022 11:01:57 +0000 (16:31 +0530)
committerSANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Wed, 23 Nov 2022 11:01:57 +0000 (16:31 +0530)
Issue-id: AIMLWF-5

Signed-off-by: SANDEEP KUMAR JAISAWAL <s.jaisawal@samsung.com>
Change-Id: I4bd842efbfcb9a08c470eb6a7409a5bed927475e

tests/README.MD
tests/requirement_tests.txt [new file with mode: 0644]
tox.ini

index 741424c..ca6c657 100644 (file)
@@ -25,11 +25,21 @@ tm
 |setup.py
 
 
-# Prerequisite to run the test cases
-Install training manager as python package
+## Prerequisite to run the test cases
+Install training manager itself as python package
 pip3 install .
 
-Example to run test cases.
+## Install modelmetricsdk and featurestoresdk as python packages
+git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/feature-store"
+git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/model-storage"
+
+pip3 install feature-store/.
+pip3 install model-storage/.
+
+## Install all python dependecy packages
+pip3 install -r requirements_test.txt
+
+# Example to run test cases.
 
 # Generate test report
 sudo python3 -m pytest -rA . --capture=tee-sys --cov-report term-missing --cov-report xml:coverage.xml   --cov-report html:htmlcov --junitxml test-reports/junit.xml --cov=./
\ No newline at end of file
diff --git a/tests/requirement_tests.txt b/tests/requirement_tests.txt
new file mode 100644 (file)
index 0000000..c01eb38
--- /dev/null
@@ -0,0 +1,16 @@
+  pytest
+  coverage
+  pytest-cov
+  connexion
+  mock
+  boto3
+  botocore
+  Flask
+  Flask-API
+  Flask-Cors
+  requests
+  pandas
+  PyYAML
+  python-dotenv
+  kubernetes
+  pg8000
\ No newline at end of file
diff --git a/tox.ini b/tox.ini
index e83fffa..93d1911 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -24,6 +24,7 @@ skipsdist = true
 basepython = python3.8
 deps=
   pytest
+  python-pytest
   coverage
   pytest-cov
   connexion
@@ -36,7 +37,17 @@ deps=
   requests
   pandas
   PyYAML
+  python-dotenv
+  kubernetes
+  pg8000
 
-setenv = TESTS_BASE_PATH = {toxinidir}/tests
+setenv = cd  = {toxinidir}/tests
 commands =
+  pip3 install {toxinidir}
+
+  git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/feature-store"
+  git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/sdk/model-storage"
+
+  pip3 install feature-store/.
+  pip3 install model-storage/.
   pytest --cov-append --cov {toxinidir} --cov-report xml --cov-report term-missing --cov-report html
\ No newline at end of file