Feature 11001: Robot framework linting for E2E tests
[osm/tests.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 729a3e0..58889d1 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -16,7 +16,7 @@
 #######################################################################################
 
 [tox]
-envlist = black, cover, flake8, pylint, safety
+envlist = black, cover, flake8, pylint, rflint, safety
 
 [tox:jenkins]
 toxworkdir = /tmp/.tox
@@ -53,11 +53,26 @@ commands =
 
 #######################################################################################
 [testenv:pylint]
+changedir = {toxinidir}/robot-systest
 deps =  {[testenv]deps}
         -r{toxinidir}/requirements-dev.txt
         pylint
 commands =
-        - pylint -E robot-systest/resources
+        pylint -E .
+
+
+#######################################################################################
+[testenv:rflint]
+changedir = {toxinidir}/robot-systest
+deps =  {[testenv]deps}
+        -r{toxinidir}/requirements-dev.txt
+        robotframework-lint
+        robotframework-robocop
+commands =
+        rflint --ignore LineTooLong --ignore TooFewTestSteps --ignore TooManyTestCases \
+               --ignore TooManyTestSteps --ignore TooFewKeywordSteps \
+               testsuite lib resources
+        robocop --configure return_status:quality_gate:E=0:W=0:I=0 --exclude 050*,0701,0923 .
 
 
 #######################################################################################