Need to run Exec task of gradle for different environments
This post has NOT been accepted by the mailing list yet.
I am new to gradle and learning it gradually.
I need to run my python integration tests via gradle on local environment and also dev env.
Goal is to run my tests from commandline against a particular env. Such as:
gradle -Penv=local pythontest
With above command, my python tests need to run on local env, url: localhost:8665/local
gradle -Penv=qa pythontest
My python tests need to run on QA env: url: idp.test.solutions.net:8665/data
Not able to figure out how to set my urls inside this task. Also not sure if python tests can accept the url from here.
This is different from Java tests, where it was relatively easier to set the -Penv, via testng and made changes to my 'test' task:
useDefaultListeners = true
ignoreFailures = true
jvmArgs '-Xmx3048m', '-XX:MaxPermSize=256m'