-
Notifications
You must be signed in to change notification settings - Fork 673
Debugging TestRun
Ivan Nikulin edited this page May 31, 2016
·
4 revisions
You can debug TestRun
workflow using DEBUG
environment variable. If debugging enabled tescafe will log following events to console:
-
tescafe:test-run:{userAgent}:driver-message
- incoming message fromDriver
. -
tescafe:test-run:{userAgent}:command
-TestRun
started execution of the command.
You can enable debugging by specifying environment variable.
Example using gulp:
DEBUG=testcafe:test-run:* gulp test-functional
This will log all kinds of messages for all user-agents. As you see you can use wildcards (*
) to filter messages.
Filtering examples:
DEBUG=testcafe:test-run:Chrome*:* gulp test-functional
Will log only message for Chrome
only.
DEBUG=testcafe:test-run:*:error gulp test-functional
Will log only error
messages.
Just like in local usage you need to specify environment variable. You can do it for the specific task in .travis.yml
file.
Example:
language: node_js
matrix:
include:
- node_js: "0.10"
env: GULP_TASK="test-server"
- node_js: "4"
env: GULP_TASK="test-server"
- node_js: "stable"
env: GULP_TASK="test-server"
- node_js: "stable"
env: GULP_TASK="test-client-travis"
- node_js: "stable"
env: GULP_TASK="test-functional" DEBUG="testcafe:test-run:*"
fast_finish: true
branches:
except:
- /^greenkeeper-.*$/
notifications:
email: false