Skip to content
Snippets Groups Projects
Commit 7284032a authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Feature/codeception parallel

parent 7026ae27
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ prepare npm assets:
tags:
- vendor
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- exists:
- package.json
- tests/codeception/prepare_npm.sh
......@@ -76,6 +78,8 @@ prepare tests:
paths:
- tests/dependent_plugins
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- exists:
- tests/integration/prepare.sh
- tests/codeception/prepare.sh
......
......@@ -17,6 +17,8 @@
CI_DEBUG_SERVICES: trace
SCREEN_WIDTH: 1200
SCREEN_HEIGHT: 1200
parallel: 4
retry: 2
services:
- name: mysql:5.6
alias: mysqltests
......@@ -34,6 +36,8 @@
stage: tests
allow_failure: false
interruptible: true
before_script:
- export PARALLEL_JOB=${CI_NODE_INDEX}
script:
- echo "xdebug.max_nesting_level=2560" >> /usr/local/etc/php/php.ini
- export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
......@@ -58,7 +62,7 @@
- chmod a+w ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log
- echo "End before"
- cd ${CI_PROJECT_DIR}
- composer prepare-parallel-codeception-tests 4
- composer prepare-parallel-codeception-tests ${CI_NODE_TOTAL}
- vendor/bin/codecept run acceptance $PARALLEL_JOB --steps --xml --html -f --verbose
after_script:
- cp ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log tests/codeception/tests/_output/debug.log || true
......@@ -133,69 +137,16 @@
- cd ${CI_PROJECT_DIR}
- vendor/bin/codecept run acceptance --steps --xml --html -f --coverage --coverage-xml --coverage-html --verbose
codeception test 1:
<<: *job-codeception-test-parallel-auto
before_script:
- export PARALLEL_JOB=1
codeception test 2:
codeception parallel test:
<<: *job-codeception-test-parallel-auto
before_script:
- export PARALLEL_JOB=2
codeception test 3:
<<: *job-codeception-test-parallel-auto
before_script:
- export PARALLEL_JOB=3
codeception test 4:
<<: *job-codeception-test-parallel-auto
before_script:
- export PARALLEL_JOB=4
codeception test manual 1:
<<: *job-codeception-test-parallel-manual
before_script:
- export PARALLEL_JOB=1
codeception test manual 2:
<<: *job-codeception-test-parallel-manual
before_script:
- export PARALLEL_JOB=2
codeception test manual 3:
codeception paralel test manual:
<<: *job-codeception-test-parallel-manual
before_script:
- export PARALLEL_JOB=3
codeception test manual 4:
<<: *job-codeception-test-parallel-manual
before_script:
- export PARALLEL_JOB=4
codeception test manual recorded 1:
<<: *job-codeception-test-parallel-manual-recorded
before_script:
- export PARALLEL_JOB=1
- cp vendor/wpdesk/wp-codeception/configuration/codeception-with-recorder.dist.yml codeception-with-recorder.dist.yml
codeception test manual recorded 2:
<<: *job-codeception-test-parallel-manual-recorded
before_script:
- export PARALLEL_JOB=2
- cp vendor/wpdesk/wp-codeception/configuration/codeception-with-recorder.dist.yml codeception-with-recorder.dist.yml
codeception test manual recorded 3:
<<: *job-codeception-test-parallel-manual-recorded
before_script:
- export PARALLEL_JOB=3
- cp vendor/wpdesk/wp-codeception/configuration/codeception-with-recorder.dist.yml codeception-with-recorder.dist.yml
codeception test manual recorded 4:
codeception parallel test manual recorded:
<<: *job-codeception-test-parallel-manual-recorded
before_script:
- export PARALLEL_JOB=4
- export PARALLEL_JOB=$CI_NODE_INDEX
- cp vendor/wpdesk/wp-codeception/configuration/codeception-with-recorder.dist.yml codeception-with-recorder.dist.yml
codeception code coverage manual:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment