test(platform-server): add initial e2e tests for platform-server (#15061)

This commit is contained in:
vikerman
2017-03-14 17:11:39 -07:00
committed by Chuck Jazdzewski
parent 13686bb518
commit ff60c041f6
25 changed files with 413 additions and 16 deletions

View File

@ -38,7 +38,7 @@ travisFoldEnd "tsc a bunch of useless stuff"
# Build integration tests
if [[ ${CI_MODE:-} == "e2e" ]]; then
if [[ ${CI_MODE:-} == "e2e_2" ]]; then
travisFoldStart "build.integration"
cd "`dirname $0`/../../integration"
./build_rxjs_es6.sh

View File

@ -41,7 +41,7 @@ travisFoldStart "npm-install"
travisFoldEnd "npm-install"
if [[ ${TRAVIS} && (${CI_MODE} == "e2e" || ${CI_MODE} == "aio" || ${CI_MODE} == "docs_test") ]]; then
if [[ ${TRAVIS} && (${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} == "aio" || ${CI_MODE} == "docs_test") ]]; then
# Install version of yarn that we are locked against
travisFoldStart "install-yarn"
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "${YARN_VERSION}"
@ -61,7 +61,7 @@ fi
# Install Chromium
if [[ ${CI_MODE} == "js" || ${CI_MODE} == "e2e" || ${CI_MODE} == "aio" ]]; then
if [[ ${CI_MODE} == "js" || ${CI_MODE} == "e2e" || ${CI_MODE} == "e2e_2" || ${CI_MODE} == "aio" ]]; then
travisFoldStart "install-chromium"
(
${thisDir}/install-chromium.sh

36
scripts/ci/test-e2e-2.sh Executable file
View File

@ -0,0 +1,36 @@
#!/usr/bin/env bash
# Second shard for the e2e tests. Balance it with runtime of test-e2e.sh
set -u -e -o pipefail
# Setup environment
readonly thisDir=$(cd $(dirname $0); pwd)
source ${thisDir}/_travis-fold.sh
travisFoldStart "test.e2e.buildPackages"
./build.sh
travisFoldEnd "test.e2e.buildPackages"
if [[ ${TRAVIS:-} ]]; then
travisFoldStart "test.e2e.xvfb-start"
sh -e /etc/init.d/xvfb start
travisFoldEnd "test.e2e.xvfb-start"
fi
travisFoldStart "test.e2e.integration"
./integration/run_tests.sh
travisFoldEnd "test.e2e.integration"
travisFoldStart "test.e2e.offlineCompiler"
#TODO(alexeagle): move offline_compiler_test to integration/
${thisDir}/offline_compiler_test.sh
travisFoldEnd "test.e2e.offlineCompiler"
travisFoldStart "test.e2e.platform-server"
./packages/platform-server/integrationtest/run_tests.sh
travisFoldEnd "test.e2e.platform-server"

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
# First shard for the e2e tests. Balance it with runtime of test-e2e-2.sh
set -u -e -o pipefail
# Setup environment
@ -18,18 +20,6 @@ if [[ ${TRAVIS:-} ]]; then
travisFoldEnd "test.e2e.xvfb-start"
fi
travisFoldStart "test.e2e.integration"
./integration/run_tests.sh
travisFoldEnd "test.e2e.integration"
travisFoldStart "test.e2e.offlineCompiler"
#TODO(alexeagle): move offline_compiler_test to integration/
${thisDir}/offline_compiler_test.sh
travisFoldEnd "test.e2e.offlineCompiler"
travisFoldStart "test.e2e.publicApi"
$(npm bin)/gulp public-api:enforce
travisFoldEnd "test.e2e.publicApi"

View File

@ -22,6 +22,9 @@ case ${CI_MODE} in
e2e)
${thisDir}/test-e2e.sh
;;
e2e_2)
${thisDir}/test-e2e-2.sh
;;
saucelabs_required)
${thisDir}/test-saucelabs.sh
;;