From b10fee6ff1649d43d7a56e82ec680c368c155d11 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Fri, 26 Jan 2018 13:36:08 +0200 Subject: [PATCH] Add end-to-end setup doc --- doc/testing.md | 8 ++++++++ test/Jenkinsfile | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/Jenkinsfile diff --git a/doc/testing.md b/doc/testing.md index c0ad83f..3ac6a9f 100644 --- a/doc/testing.md +++ b/doc/testing.md @@ -63,3 +63,11 @@ To remove issue from the Bounties list you can close it in GitHub. All bugs should be reported as issues in the [OpenBounty Github repository](https://github.com/status-im/open-bounty/issues). Please first check that there is not already a duplicate issue. Issues should contain exact and minimal step-by-step instructions for reproducing the problem. + +### Status Open Bounty end-to-end tests + +Framework for testing located in: `open-bounty/test/end-to-end` + +Full installation and configuring manual: [Status Open Bounty end-to-end tests](https://wiki.status.im/Status_Open_Bounty_end-to-end_tests) + +Currently supports local and Jenkins environment running (you can find example of JenkinsFile in `open-bounty/test` ) diff --git a/test/Jenkinsfile b/test/Jenkinsfile new file mode 100644 index 0000000..8845432 --- /dev/null +++ b/test/Jenkinsfile @@ -0,0 +1,13 @@ +# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins (end-to-end autotests) + +node ('linux1') {sauce('1be1b688-e0e7-4314-92a0-db11f52d3c00') { + checkout([$class: 'GitSCM', branches: [[name: '*/develop']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/status-im/open-bounty.git']]]) + configFileProvider([configFile(fileId: 'sob_automation_test_config', targetLocation: 'test/end-to-end/tests')]) { + try {sh 'cd test/end-to-end/tests && python3 -m pytest -m sanity --build=$BUILD_NAME -v -n 1' + } + finally { + saucePublisher() + junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: 'test/end-to-end/tests/*.xml' } + } + } +} \ No newline at end of file