Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .mocharc to create test XML results. #1588

Merged
merged 5 commits into from
Jan 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .kokoro/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
reporter: xunit
ace-n marked this conversation as resolved.
Show resolved Hide resolved
reporter-option:
- output=./all-tests.xml
5 changes: 5 additions & 0 deletions .kokoro/build-with-appengine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ set -e;

export GCLOUD_PROJECT=nodejs-docs-samples-tests

# Activate mocha config
pushd github/nodejs-docs-samples
mv .kokoro/.mocharc.yml .
popd

# Update gcloud
gcloud components update --quiet

Expand Down
5 changes: 5 additions & 0 deletions .kokoro/build-with-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

set -eo pipefail

# Activate mocha config
pushd github/nodejs-docs-samples
mv .kokoro/.mocharc.yml .
popd

export GOOGLE_CLOUD_PROJECT=nodejs-docs-samples-tests
pushd github/nodejs-docs-samples/${PROJECT}

Expand Down
5 changes: 5 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export NODEJS_IOT_RSA_PUBLIC_CERT=${KOKORO_GFILE_DIR}/rsa_cert.pem
export BOT_ACCESS_TOKEN=${KOKORO_GFILE_DIR}/secrets-slack-bot-access-token.txt
export CHANNEL=${KOKORO_GFILE_DIR}/secrets-slack-channel-id.txt

# Activate mocha config
pushd github/nodejs-docs-samples
mv .kokoro/.mocharc.yml .
popd

cd github/nodejs-docs-samples/${PROJECT}

# Install dependencies
Expand Down