Test, Setting up CI - epam/Gepard GitHub Wiki

Arranging tests to be executed

It is recommended to create testlists to be used for different purposes, like

  • testlists for components/functional areas
  • testlists for smoke tests
  • testlists for regression tests on different test environments

Setting up Jenkins to execute tests

It is recommended to create jobs for every separated testlist.

The suggested commands when you execute a testlist is the following (on Linux, see sendmail.gradle file in gepard-examples module):

# this is necessary only if execute right is not-yet available
chmod 755 ./gradlew
# run the tests
./gradlew -PbuildTag=$BUILD_NUMBER clean run
# mail the results, as necessary
./gradlew -Djava.net.preferIPv4Stack=true -b sendmail.gradle -Pmailinfo=[DEV] -PmailUser=Auto_Your_Email -PmailPassword=Auto_Your_Password [email protected] -Preceiver=whoever_is@interested,whoever_else_is@interested -PmailHost=mail.host sendMail